aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/acerhdf.c
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-09-18 15:41:05 -0400
committerLen Brown <len.brown@intel.com>2009-09-19 01:53:07 -0400
commitff27e1f3037535a547e2474eecb688428d654dc3 (patch)
tree544b04eb599f7087446d312fae2399e145d2383b /drivers/platform/x86/acerhdf.c
parentded0cdfc6a7673916b0878c32fa8ba566b4f8cdb (diff)
acerhdf: convert to dev_pm_ops
Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Peter Feuerer <peter@piie.net> Cc: Andreas Mohr <andi@lisas.de> Cc: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform/x86/acerhdf.c')
-rw-r--r--drivers/platform/x86/acerhdf.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c
index aa298d6ea371..5aef16f33841 100644
--- a/drivers/platform/x86/acerhdf.c
+++ b/drivers/platform/x86/acerhdf.c
@@ -52,7 +52,7 @@
52 */ 52 */
53#undef START_IN_KERNEL_MODE 53#undef START_IN_KERNEL_MODE
54 54
55#define DRV_VER "0.5.16" 55#define DRV_VER "0.5.17"
56 56
57/* 57/*
58 * According to the Atom N270 datasheet, 58 * According to the Atom N270 datasheet,
@@ -435,7 +435,7 @@ struct thermal_cooling_device_ops acerhdf_cooling_ops = {
435}; 435};
436 436
437/* suspend / resume functionality */ 437/* suspend / resume functionality */
438static int acerhdf_suspend(struct platform_device *dev, pm_message_t state) 438static int acerhdf_suspend(struct device *dev)
439{ 439{
440 if (kernelmode) 440 if (kernelmode)
441 acerhdf_change_fanstate(ACERHDF_FAN_AUTO); 441 acerhdf_change_fanstate(ACERHDF_FAN_AUTO);
@@ -446,14 +446,6 @@ static int acerhdf_suspend(struct platform_device *dev, pm_message_t state)
446 return 0; 446 return 0;
447} 447}
448 448
449static int acerhdf_resume(struct platform_device *device)
450{
451 if (verbose)
452 pr_notice("resuming\n");
453
454 return 0;
455}
456
457static int __devinit acerhdf_probe(struct platform_device *device) 449static int __devinit acerhdf_probe(struct platform_device *device)
458{ 450{
459 return 0; 451 return 0;
@@ -464,15 +456,19 @@ static int acerhdf_remove(struct platform_device *device)
464 return 0; 456 return 0;
465} 457}
466 458
459static struct dev_pm_ops acerhdf_pm_ops = {
460 .suspend = acerhdf_suspend,
461 .freeze = acerhdf_suspend,
462};
463
467static struct platform_driver acerhdf_driver = { 464static struct platform_driver acerhdf_driver = {
468 .driver = { 465 .driver = {
469 .name = "acerhdf", 466 .name = "acerhdf",
470 .owner = THIS_MODULE, 467 .owner = THIS_MODULE,
468 .pm = &acerhdf_pm_ops,
471 }, 469 },
472 .probe = acerhdf_probe, 470 .probe = acerhdf_probe,
473 .remove = acerhdf_remove, 471 .remove = acerhdf_remove,
474 .suspend = acerhdf_suspend,
475 .resume = acerhdf_resume,
476}; 472};
477 473
478 474