hwmon: (ntc_thermistor) Return error code from hwmon_device_register
authorGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 23 Apr 2012 17:41:03 +0000 (10:41 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 21 May 2012 02:41:49 +0000 (19:41 -0700)
commit425d247680d050fe3ee7e53b9cf0240bf6b4b351
tree5f29561c91a3602a2bf817ff9ba059bdb067e097
parent41141e64e63dd250a05218b66c91e125f1020b92
hwmon: (ntc_thermistor) Return error code from hwmon_device_register

hwmon_device_register() never returns a NULL pointer in case of errors, but
an error value. Use it.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/ntc_thermistor.c