]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm75) Handle cleanup with devm_add_action
authorGuenter Roeck <linux@roeck-us.net>
Mon, 20 Jun 2016 00:06:48 +0000 (17:06 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 9 Jul 2016 15:33:46 +0000 (08:33 -0700)
commit4225fbbf3b2859089931f215563d1e38df553d53
treec31f107b0e23af70ddccd1b8c6bb38b3f4261034
parent7238afcc7cc5cdac00650daed4666aede5d8e01a
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: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm75.c