From patchwork Mon Jul 4 08:06:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damian Hobson-Garcia X-Patchwork-Id: 941722 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6485viA001609 for ; Mon, 4 Jul 2011 08:06:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755000Ab1GDIGU (ORCPT ); Mon, 4 Jul 2011 04:06:20 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:56036 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754557Ab1GDIGT (ORCPT ); Mon, 4 Jul 2011 04:06:19 -0400 Received: by iyb12 with SMTP id 12so4263153iyb.19 for ; Mon, 04 Jul 2011 01:06:19 -0700 (PDT) Received: by 10.42.147.3 with SMTP id l3mr5978482icv.214.1309766779043; Mon, 04 Jul 2011 01:06:19 -0700 (PDT) Received: from localhost.localdomain (mailhost.igel.co.jp [219.106.231.130]) by mx.google.com with ESMTPS id ly7sm6197956icb.12.2011.07.04.01.06.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 01:06:18 -0700 (PDT) From: Damian Hobson-Garcia To: Magnus Damm , lethal@linux-sh.org, linux-sh@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: taki@igel.co.jp, matsu@igel.co.jp, Damian Hobson-Garcia Subject: [PATCH 1/5] fbdev: sh_mobile_meram: Enable runtime PM Date: Mon, 4 Jul 2011 17:06:11 +0900 Message-Id: <1309766771-32452-1-git-send-email-dhobsong@igel.co.jp> X-Mailer: git-send-email 1.7.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 04 Jul 2011 08:06:21 +0000 (UTC) Signed-off-by: Damian Hobson-Garcia --- drivers/video/sh_mobile_meram.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c index 9170c82..61e106f 100644 --- a/drivers/video/sh_mobile_meram.c +++ b/drivers/video/sh_mobile_meram.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -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; @@ -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);