summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/g760a.c
diff options
context:
space:
mode:
authorArnaud Ebalard2014-11-19 22:52:36 +0100
committerGuenter Roeck2014-11-19 23:06:47 +0100
commit6b19b66013cfe608d63f0dab38834bbaceb0217a (patch)
tree34e6c25de4e100187517cc5dcdb6bf8031125536 /drivers/hwmon/g760a.c
parentLinux 3.18-rc5 (diff)
downloadkernel-qcow2-linux-6b19b66013cfe608d63f0dab38834bbaceb0217a.tar.gz
kernel-qcow2-linux-6b19b66013cfe608d63f0dab38834bbaceb0217a.tar.xz
kernel-qcow2-linux-6b19b66013cfe608d63f0dab38834bbaceb0217a.zip
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 <arno@natisbad.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/g760a.c')
0 files changed, 0 insertions, 0 deletions