From: Guenter Roeck Date: Fri, 12 Jul 2013 03:00:12 +0000 (-0700) Subject: hwmon: Provide managed hwmon registration X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~18^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74188cba088192e14cd7fd5433876e8c947bcdd8;p=pandora-kernel.git 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 --- Reading git-diff-tree failed