diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-11-21 18:56:58 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:41:14 -0400 |
commit | af89956be14ae5bb304872756a47309edc2c94fb (patch) | |
tree | 45f46471872fd17efd3228b7a33da53410141fa4 | |
parent | cdf88b9072a86545611b9c3f5597ebc47e50ffc1 (diff) |
fbdev: sh_mobile_meram: Implement system suspend/resume
Supporting runtime PM is very nice, but that's not a reason not to
implement system suspend/resume properly.
Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | drivers/video/sh_mobile_meram.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c index d9f7a44c231c..82ba830bf95d 100644 --- a/drivers/video/sh_mobile_meram.c +++ b/drivers/video/sh_mobile_meram.c | |||
@@ -539,7 +539,7 @@ static struct sh_mobile_meram_ops sh_mobile_meram_ops = { | |||
539 | * Power management | 539 | * Power management |
540 | */ | 540 | */ |
541 | 541 | ||
542 | static int sh_mobile_meram_runtime_suspend(struct device *dev) | 542 | static int sh_mobile_meram_suspend(struct device *dev) |
543 | { | 543 | { |
544 | struct platform_device *pdev = to_platform_device(dev); | 544 | struct platform_device *pdev = to_platform_device(dev); |
545 | struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev); | 545 | struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev); |
@@ -563,7 +563,7 @@ static int sh_mobile_meram_runtime_suspend(struct device *dev) | |||
563 | return 0; | 563 | return 0; |
564 | } | 564 | } |
565 | 565 | ||
566 | static int sh_mobile_meram_runtime_resume(struct device *dev) | 566 | static int sh_mobile_meram_resume(struct device *dev) |
567 | { | 567 | { |
568 | struct platform_device *pdev = to_platform_device(dev); | 568 | struct platform_device *pdev = to_platform_device(dev); |
569 | struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev); | 569 | struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev); |
@@ -582,10 +582,9 @@ static int sh_mobile_meram_runtime_resume(struct device *dev) | |||
582 | return 0; | 582 | return 0; |
583 | } | 583 | } |
584 | 584 | ||
585 | static const struct dev_pm_ops sh_mobile_meram_dev_pm_ops = { | 585 | static UNIVERSAL_DEV_PM_OPS(sh_mobile_meram_dev_pm_ops, |
586 | .runtime_suspend = sh_mobile_meram_runtime_suspend, | 586 | sh_mobile_meram_suspend, |
587 | .runtime_resume = sh_mobile_meram_runtime_resume, | 587 | sh_mobile_meram_resume, NULL); |
588 | }; | ||
589 | 588 | ||
590 | /* ----------------------------------------------------------------------------- | 589 | /* ----------------------------------------------------------------------------- |
591 | * Probe/remove and driver init/exit | 590 | * Probe/remove and driver init/exit |