hwmon: (lm90) Improve error handling
authorGuenter Roeck <linux@roeck-us.net>
Mon, 25 Jul 2016 21:53:23 +0000 (14:53 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 31 Jul 2016 22:02:51 +0000 (15:02 -0700)
commitc5fcf01bcfceb245da575cc5bfa4391642649f2d
tree063486384b5e7a77d4b6db06fa9f8e05f85ae85e
parentbe9d6374a76ffbeda783a5bdcb00e219c7bda2d0
hwmon: (lm90) Improve error handling

Replace devm_add_action() with devm_add_action_or_reset(),
and check its return value.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c