From patchwork Fri Nov 28 08:30:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 5401931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CA4399F47A for ; Fri, 28 Nov 2014 08:33:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C8B120138 for ; Fri, 28 Nov 2014 08:33:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A9D32012D for ; Fri, 28 Nov 2014 08:32:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XuGxU-0004mX-6X; Fri, 28 Nov 2014 08:31:20 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XuGwq-0004U2-PV for linux-arm-kernel@lists.infradead.org; Fri, 28 Nov 2014 08:30:42 +0000 Received: by mail-lb0-f178.google.com with SMTP id f15so5843891lbj.9 for ; Fri, 28 Nov 2014 00:30:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Kjrtt5wFEXZlYRe6mGmmKbIDz7U/jjl/2QDknIUm6Uk=; b=KgEQnbGCV/6hkkM72SpYkiV0Bh3PhAzUxfvvm8YJYQ3nTrn/i/t7hU3KO8VG036/km YTGA9mOad+QGc/rCWEiBuCCL9/f6yb6/fiZhvRDecVtXwXoXhPdyxXDcgsC+HMCNg/JV ak6whbuf63g1VJ8xtgK74TbHnnP1dhvkDVhcGoIR2pzo+PDMcJ2Dou6puhoLoUXT+sF8 6zA4xNKuWsahO8dyPI6a+J1jb1wr/ztyTxH8Pjy9usFAYHD64FJw7SHAQ2cSA8QzUh3k nwAWPmm/6FArfgvh21v4ZLur5jfxfy6ZEi3F8D0mmItPcD2cD4tBPk9Kpj+UCk9jKvT0 UawA== X-Gm-Message-State: ALoCoQlUvGZdwDIGIkywyaJ9ZAtlGCgkcJ6me+xDYwh0x3ZMBipYzxc8FK4DiKjD2QPU2cPZpP6p X-Received: by 10.112.63.133 with SMTP id g5mr42549293lbs.33.1417163416718; Fri, 28 Nov 2014 00:30:16 -0800 (PST) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id z1sm2419274lad.40.2014.11.28.00.30.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Nov 2014 00:30:15 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Kevin Hilman , Simon Horman , linux-pm@vger.kernel.org Subject: [PATCH V3 3/3] ARM: shmobile: Convert to genpd flags for PM clocks for R-mobile Date: Fri, 28 Nov 2014 09:30:03 +0100 Message-Id: <1417163403-7070-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417163403-7070-1-git-send-email-ulf.hansson@linaro.org> References: <1417163403-7070-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141128_003041_043016_8C44537F X-CRM114-Status: GOOD ( 10.31 ) X-Spam-Score: -0.7 (/) Cc: Ulf Hansson , linux-samsung-soc@vger.kernel.org, Russell King , Arnd Bergmann , Geert Uytterhoeven , Dmitry Torokhov , Magnus Damm , Grygorii Strashko , Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of using the dev_ops ->stop|start() callbacks for genpd, let's convert to use genpd's flag field and set it to GENPD_PM_CLK. Signed-off-by: Ulf Hansson Tested-by: Geert Uytterhoeven --- Changes in v3: Convert to renamed define. Changes in v2: None. --- arch/arm/mach-shmobile/pm-rmobile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 717e641..5aa277d 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -106,9 +106,8 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) struct generic_pm_domain *genpd = &rmobile_pd->genpd; struct dev_power_governor *gov = rmobile_pd->gov; + genpd->flags = GENPD_PM_CLK; pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); - genpd->dev_ops.stop = pm_clk_suspend; - genpd->dev_ops.start = pm_clk_resume; genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup; genpd->power_off = rmobile_pd_power_down; genpd->power_on = rmobile_pd_power_up;