]> git.karo-electronics.de Git - mv-sheeva.git/commit
hwmon: lis3: Release resources in case of failure
authorSamu Onkalo <samu.p.onkalo@nokia.com>
Fri, 22 Oct 2010 11:57:34 +0000 (07:57 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 25 Oct 2010 21:44:59 +0000 (14:44 -0700)
commitb11e7b3f3b56119194234085d42a633ceabd6aba
treeba12e182a53f74f78e8c35f05699b2a7b03f82e3
parent83af1bd81f7b7fb31a681b0c80790866f190d23a
hwmon: lis3: Release resources in case of failure

If lis3lv02d_init_device fails, HW resources were not released
properly. In case of failure call release_resources if available.

Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Acked-by: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lis3lv02d_i2c.c