From: Arnaud Ebalard Date: Wed, 19 Nov 2014 21:52:36 +0000 (+0100) Subject: hwmon: (g762) fix call to devm_hwmon_device_register_with_groups() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~72^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b19b66013cfe608d63f0dab38834bbaceb0217a;p=pandora-kernel.git hwmon: (g762) fix call to devm_hwmon_device_register_with_groups() g762_remove() needs to first call hwmon_device_unregister() and then g762_of_clock_disable(). For that reason, it is not possible to convert it to devm_hwmon_device_register_with_groups() and the the non device managed version must be used. This is correctly stated in commit message for 398e16db6262 ("hwmon: (g762) Convert to hwmon_device_register_with_groups") but the associated changes do in fact introduce a call to the device managed version of the function. This patch fixes that typo by switching to the non devm_ version. Fixes: 398e16db6262 ("hwmon: (g762) Convert to hwmon_device_register_with_groups") Cc: stable@vger.kernel.org (3.17+) Signed-off-by: Arnaud Ebalard Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed