Commit ff27e1f3 authored by Borislav Petkov's avatar Borislav Petkov Committed by Len Brown

acerhdf: convert to dev_pm_ops

Signed-off-by: default avatarBorislav Petkov <petkovbb@gmail.com>
Signed-off-by: default avatarPeter Feuerer <peter@piie.net>
Cc: Andreas Mohr <andi@lisas.de>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent ded0cdfc
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
*/ */
#undef START_IN_KERNEL_MODE #undef START_IN_KERNEL_MODE
#define DRV_VER "0.5.16" #define DRV_VER "0.5.17"
/* /*
* According to the Atom N270 datasheet, * According to the Atom N270 datasheet,
...@@ -435,7 +435,7 @@ struct thermal_cooling_device_ops acerhdf_cooling_ops = { ...@@ -435,7 +435,7 @@ struct thermal_cooling_device_ops acerhdf_cooling_ops = {
}; };
/* suspend / resume functionality */ /* suspend / resume functionality */
static int acerhdf_suspend(struct platform_device *dev, pm_message_t state) static int acerhdf_suspend(struct device *dev)
{ {
if (kernelmode) if (kernelmode)
acerhdf_change_fanstate(ACERHDF_FAN_AUTO); acerhdf_change_fanstate(ACERHDF_FAN_AUTO);
...@@ -446,14 +446,6 @@ static int acerhdf_suspend(struct platform_device *dev, pm_message_t state) ...@@ -446,14 +446,6 @@ static int acerhdf_suspend(struct platform_device *dev, pm_message_t state)
return 0; return 0;
} }
static int acerhdf_resume(struct platform_device *device)
{
if (verbose)
pr_notice("resuming\n");
return 0;
}
static int __devinit acerhdf_probe(struct platform_device *device) static int __devinit acerhdf_probe(struct platform_device *device)
{ {
return 0; return 0;
...@@ -464,15 +456,19 @@ static int acerhdf_remove(struct platform_device *device) ...@@ -464,15 +456,19 @@ static int acerhdf_remove(struct platform_device *device)
return 0; return 0;
} }
static struct dev_pm_ops acerhdf_pm_ops = {
.suspend = acerhdf_suspend,
.freeze = acerhdf_suspend,
};
static struct platform_driver acerhdf_driver = { static struct platform_driver acerhdf_driver = {
.driver = { .driver = {
.name = "acerhdf", .name = "acerhdf",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &acerhdf_pm_ops,
}, },
.probe = acerhdf_probe, .probe = acerhdf_probe,
.remove = acerhdf_remove, .remove = acerhdf_remove,
.suspend = acerhdf_suspend,
.resume = acerhdf_resume,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment