commit | 74188cba088192e14cd7fd5433876e8c947bcdd8 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Thu Jul 11 20:00:12 2013 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Oct 13 16:16:28 2013 -0700 |
tree | a57d582ea4a75155a169b0dede83f5eed3c2e9b1 | |
parent | 615fc8cb0f900c91ee50f0da0a1821a7c6823671 [diff] |
hwmon: Provide managed hwmon registration 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>