]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (gpio-fan) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Sat, 14 Jun 2014 06:50:50 +0000 (14:50 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:33 +0000 (07:01 -0700)
commit8f062c3d9bc5ccfcb29e1d0331e052e851d0a0d7
tree39a357ce31ca03566d0d8979c1c404c586a9851d
parenta7cdc74e9ae85ea394bef68bac6a0e6fc822893d
hwmon: (gpio-fan) Convert to devm_hwmon_device_register_with_groups

This simplifies the code a bit and also ensures the attribute groups are
properly removed from sysfs when unload the module.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c