hwmon: (ads7828) Check return value of devm_regmap_init_i2c
authorAxel Lin <axel.lin@ingics.com>
Tue, 10 Feb 2015 10:24:07 +0000 (18:24 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 23 Feb 2015 04:10:30 +0000 (20:10 -0800)
commitd9ef72cd1c15c2fc1f7131cd78304dd21bc15953
tree25b8d09b85c64ccad5ded9a2f8b5bf2dab710790
parentc517d838eb7d07bbe9507871fab3931deccff539
hwmon: (ads7828) Check return value of devm_regmap_init_i2c

devm_regmap_init_i2c() can fail, thus add return value checking.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ads7828.c