提交 af89956b 编写于 作者: L Laurent Pinchart

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: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
上级 cdf88b90
...@@ -539,7 +539,7 @@ static struct sh_mobile_meram_ops sh_mobile_meram_ops = { ...@@ -539,7 +539,7 @@ static struct sh_mobile_meram_ops sh_mobile_meram_ops = {
* Power management * Power management
*/ */
static int sh_mobile_meram_runtime_suspend(struct device *dev) static int sh_mobile_meram_suspend(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev); 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,7 +563,7 @@ static int sh_mobile_meram_runtime_suspend(struct device *dev)
return 0; return 0;
} }
static int sh_mobile_meram_runtime_resume(struct device *dev) static int sh_mobile_meram_resume(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev); 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,10 +582,9 @@ static int sh_mobile_meram_runtime_resume(struct device *dev)
return 0; return 0;
} }
static const struct dev_pm_ops sh_mobile_meram_dev_pm_ops = { static UNIVERSAL_DEV_PM_OPS(sh_mobile_meram_dev_pm_ops,
.runtime_suspend = sh_mobile_meram_runtime_suspend, sh_mobile_meram_suspend,
.runtime_resume = sh_mobile_meram_runtime_resume, sh_mobile_meram_resume, NULL);
};
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* Probe/remove and driver init/exit * Probe/remove and driver init/exit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册