Skip to content
Commit c30aa39c authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck
Browse files

hwmon: (twl4030-madc-hwmon) Return proper error if hwmon_device_register fails



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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent 1be6a1f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment