hwmon: (twl4030-madc-hwmon) Return proper error if hwmon_device_register fails
authorAxel Lin <axel.lin@gmail.com>
Sun, 1 May 2011 15:34:55 +0000 (11:34 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 1 May 2011 16:06:35 +0000 (09:06 -0700)
The driver did not return an error if the call to hwmon_device_register failed.
Fix by returning the error reported from hwmon_device_register.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

No differences found