From: Armin Wolf <W_Armin@xxxxxx> Use devm_hwmon_device_register_with_info() to simplify the source code and remove an unnecessary error path in sch5627_probe as it performs nothing useful when using the devres function. Tested on a Fujitsu Esprimo P720. Armin Wolf (2): hwmon: (sch5627) Use devres function hwmon: (sch5627) Remove unnecessary error path drivers/hwmon/sch5627.c | 81 ++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 53 deletions(-) -- 2.20.1