hwmon: (tmp102) Improve error handling
authorGuenter Roeck <linux@roeck-us.net>
Mon, 25 Jul 2016 21:57:47 +0000 (14:57 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 31 Jul 2016 22:02:51 +0000 (15:02 -0700)
commit1aa4f0289fd5554a9cd58e5b47a361b14256ea90
tree16e50496c19c420d82aa83f612b34757f62f04f7
parent90e2b545ce78516e727ba641e9f2b0703a17da1a
hwmon: (tmp102) Improve error handling

Use devm_add_action_or_reset() instead of devm_add_action(), and
check its return code.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp102.c