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: 5401891 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 05760BEEA8 for ; Fri, 28 Nov 2014 08:30:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37AB320148 for ; Fri, 28 Nov 2014 08:30:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE4FC20166 for ; Fri, 28 Nov 2014 08:30:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbaK1IaT (ORCPT ); Fri, 28 Nov 2014 03:30:19 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:59357 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbaK1IaS (ORCPT ); Fri, 28 Nov 2014 03:30:18 -0500 Received: by mail-lb0-f179.google.com with SMTP id z11so5121511lbi.24 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=kC7QGKAcovPCenHJjKPv7cnFJt710bbixBYKCJ7oAXRotMNLocr2GG5YQeft81uH0p 6KBS1+nh/ki4M3uBMjag6WdSS1lPl2OptsGRcUcPyRdrQJbQ6XxL+86MtBZUZqO7si+n U/Qtvl5XxpCN0G8YsZQ2xzYQapaicFUj4CfGvnIRHh3skJT/pX3xRDPYVyX6INqeJpLU 0L+qn1Ul/euLttMkC5zKaG+N2Tjd32vDcMNSHYGYY0LDoiw6ieKDzJ9U3tZr9amcngO3 I/QUg4VgX/v94MsgQv8b8Nhol2po9c1f4JaDZxUmmz2yvBC6sFTWnqEe50wOzsFSsvM+ THVw== X-Gm-Message-State: ALoCoQl1ay+NUKGjYwJzKMIn94DwG1pDN7GrhYZuLArCEXheY5u1KCx7RQWI0FQAB8mMFp3QUy2b 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 Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Magnus Damm , Russell King , Dmitry Torokhov , Sylwester Nawrocki , Grygorii Strashko , Arnd Bergmann , Ulf Hansson 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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;