Skip to content
Commit 9e37d3e2 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (lm75) Handle cleanup with devm_add_action



Use devm_add_action() to register the function to restore the original
chip configuration. Use devm_hwmon_device_register_with_groups()
to register the hwmon device, and drop the remove function as no
longer needed.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent eacc48ce
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