hwmon: Provide managed hwmon registration
authorGuenter Roeck <linux@roeck-us.net>
Fri, 12 Jul 2013 03:00:12 +0000 (20:00 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:28 +0000 (16:16 -0700)
Drivers using the new hwmon_device_register_with_groups API often have a
remove function which consists solely of a call hwmon_device_unregister().

Provide support for devm_hwmon_device_register_with_groups and
devm_hwmon_device_unregister to allow this repeated code to be removed
and help eliminate error handling code.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>

No differences found