Skip to content

Commit

Permalink
fbdev: sh_mobile_meram: Enable runtime PM
Browse files Browse the repository at this point in the history
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
  • Loading branch information
Damian Hobson-Garcia authored and Laurent Pinchart committed Aug 19, 2011
1 parent 93ee7a9 commit 1767377
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/video/sh_mobile_meram.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/pm_runtime.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
Expand Down Expand Up @@ -515,6 +516,8 @@ static int __devinit sh_mobile_meram_probe(struct platform_device *pdev)
if (pdata->addr_mode == SH_MOBILE_MERAM_MODE1)
meram_write_reg(priv->base, MEVCR1, 1 << 29);

pm_runtime_enable(&pdev->dev);

dev_info(&pdev->dev, "sh_mobile_meram initialized.");

return 0;
Expand All @@ -530,6 +533,8 @@ static int sh_mobile_meram_remove(struct platform_device *pdev)
{
struct sh_mobile_meram_priv *priv = platform_get_drvdata(pdev);

pm_runtime_disable(&pdev->dev);

if (priv->base)
iounmap(priv->base);

Expand Down

0 comments on commit 1767377

Please sign in to comment.