aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-07-06 22:50:57 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-07-06 22:50:57 -0400
commit2dbc8a23cc2e677422f6dea991aca4e3d31ab65f (patch)
tree778e50222af0ab370473cf753eb516454516cf97 /drivers/video
parent684dcd056178a04374c71459dbd2b18c6d958ef7 (diff)
video: hitfb: Move over to dev_pm_ops.
A trivial update to move hitfb over to dev_pm_ops. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/hitfb.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/video/hitfb.c b/drivers/video/hitfb.c
index 3ae896d55a58..e7116a6d82d3 100644
--- a/drivers/video/hitfb.c
+++ b/drivers/video/hitfb.c
@@ -429,8 +429,7 @@ static int __exit hitfb_remove(struct platform_device *dev)
429 return 0; 429 return 0;
430} 430}
431 431
432#ifdef CONFIG_PM 432static int hitfb_suspend(struct device *dev)
433static int hitfb_suspend(struct platform_device *dev, pm_message_t state)
434{ 433{
435 u16 v; 434 u16 v;
436 435
@@ -442,7 +441,7 @@ static int hitfb_suspend(struct platform_device *dev, pm_message_t state)
442 return 0; 441 return 0;
443} 442}
444 443
445static int hitfb_resume(struct platform_device *dev) 444static int hitfb_resume(struct device *dev)
446{ 445{
447 u16 v; 446 u16 v;
448 447
@@ -456,17 +455,19 @@ static int hitfb_resume(struct platform_device *dev)
456 455
457 return 0; 456 return 0;
458} 457}
459#endif 458
459static struct dev_pm_ops hitfb_dev_pm_ops = {
460 .suspend = hitfb_suspend,
461 .resume = hitfb_resume,
462};
460 463
461static struct platform_driver hitfb_driver = { 464static struct platform_driver hitfb_driver = {
462 .probe = hitfb_probe, 465 .probe = hitfb_probe,
463 .remove = __exit_p(hitfb_remove), 466 .remove = __exit_p(hitfb_remove),
464#ifdef CONFIG_PM
465 .suspend = hitfb_suspend,
466 .resume = hitfb_resume,
467#endif
468 .driver = { 467 .driver = {
469 .name = "hitfb", 468 .name = "hitfb",
469 .owner = THIS_MODULE,
470 .pm = &hitfb_dev_pm_ops,
470 }, 471 },
471}; 472};
472 473