]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (g762) fix call to devm_hwmon_device_register_with_groups()
authorArnaud Ebalard <arno@natisbad.org>
Wed, 19 Nov 2014 21:52:36 +0000 (22:52 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Nov 2014 22:06:47 +0000 (14:06 -0800)
commit5ec9c0e645a3ba76b08a9d7db83dac209fb33ca0
tree34e6c25de4e100187517cc5dcdb6bf8031125536
parente2c81752b41ed350c75d95149169ae9b6d5b5f6c
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 eef2917feec8 ("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: eef2917feec8 ("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>
drivers/hwmon/g762.c