]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (gpio-fan) Use struct dev_pm_ops for power management
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 7 Jul 2012 22:01:03 +0000 (00:01 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jul 2012 04:48:44 +0000 (21:48 -0700)
commit6d20a6c060c41a7a9c8f5bd4b9d44b8f13b78694
tree7a319d71dc26e868def844fde878bcdc3677eabf
parentc248f24cffc3d6692f428ccc9f2ba76cea1fa6ab
hwmon: (gpio-fan) Use struct dev_pm_ops for power management

Make the gpio-fan driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct platform_driver.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
[linux@roeck-us.net: CONFIG_PM->CONFIG_PM_SLEEP, and remove unnecessary ()]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c