Message ID | 1417163403-7070-3-git-send-email-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRBF7F4CRQKGQEVXCJ7BA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3B1925E46 for <linaro@patches.linaro.org>; Fri, 28 Nov 2014 08:30:15 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf3791968wgh.6 for <linaro@patches.linaro.org>; Fri, 28 Nov 2014 00:30:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=7vIKOEq4UpYRuMKI/3QBnjWwQS9rMAV62+hCZXRybY8=; b=jBmvE13vG3rosPqp+Fbt/S03PSrc5gt3wNcJgtVtcH93cDPAnKc4NXTw2HPjRjYOnL ZKa+2x8tPZsG6CcwdX2eQumMn4GhqzL1jbq17Hgyq56ytiZuiE1VSNCMLMoDwEHVCmFW FGMU4rytbvsOBkDS6eaRrC+liC4Hdf1ZFfkokpsakw+vf/7ZLDSEkWB3UJ2tvnesBeUk Lx+lPgEcuy+MkH09Va68mgR4FkrOlAbks3P+ZQLMEfIr2OM2fIcnLvy/nZCKXJGb1grl +chzPJ7dY9j6QQaqU1unoe4Lj3vwu/7NisPHH2+2vcjxR43D3qnBHdmmibDzpe54CZu4 hYbQ== X-Gm-Message-State: ALoCoQlAy47c3gmiqruzUL8Vhu3Q/4u1p7gEVod9+gx7tHN7S55s1qnnrqKnEaUprUXlKQ9WueHG X-Received: by 10.152.5.2 with SMTP id o2mr8160741lao.1.1417163415121; Fri, 28 Nov 2014 00:30:15 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls756789lah.18.gmail; Fri, 28 Nov 2014 00:30:14 -0800 (PST) X-Received: by 10.112.146.37 with SMTP id sz5mr42660043lbb.27.1417163414858; Fri, 28 Nov 2014 00:30:14 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id w6si9246846lal.121.2014.11.28.00.30.14 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 00:30:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id s18so5353700lam.15 for <patchwork-forward@linaro.org>; Fri, 28 Nov 2014 00:30:14 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr42071989lbo.32.1417163414784; Fri, 28 Nov 2014 00:30:14 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp51851lbc; Fri, 28 Nov 2014 00:30:14 -0800 (PST) X-Received: by 10.112.125.4 with SMTP id mm4mr33754071lbb.94.1417163414171; Fri, 28 Nov 2014 00:30:14 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id ew1si866192lbc.79.2014.11.28.00.30.14 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 00:30:14 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id q1so387859lam.5 for <patches@linaro.org>; Fri, 28 Nov 2014 00:30:14 -0800 (PST) X-Received: by 10.152.203.137 with SMTP id kq9mr42434361lac.51.1417163414009; Fri, 28 Nov 2014 00:30:14 -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.11 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Nov 2014 00:30:13 -0800 (PST) From: Ulf Hansson <ulf.hansson@linaro.org> To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>, Kevin Hilman <khilman@linaro.org>, Simon Horman <horms@verge.net.au>, linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be>, Magnus Damm <magnus.damm@gmail.com>, Russell King <linux@arm.linux.org.uk>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Grygorii Strashko <grygorii.strashko@ti.com>, Arnd Bergmann <arnd@arndb.de>, Ulf Hansson <ulf.hansson@linaro.org> Subject: [PATCH V3 2/3] ARM: shmobile: Convert to genpd flags for PM clocks for r8a7779 Date: Fri, 28 Nov 2014 09:30:02 +0100 Message-Id: <1417163403-7070-3-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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index 82fe3d7..3a09ae7 100644 --- a/arch/arm/mach-shmobile/pm-r8a7779.c +++ b/arch/arm/mach-shmobile/pm-r8a7779.c @@ -83,9 +83,8 @@ static void r8a7779_init_pm_domain(struct r8a7779_pm_domain *r8a7779_pd) { struct generic_pm_domain *genpd = &r8a7779_pd->genpd; + genpd->flags = GENPD_PM_CLK; pm_genpd_init(genpd, NULL, false); - genpd->dev_ops.stop = pm_clk_suspend; - genpd->dev_ops.start = pm_clk_resume; genpd->dev_ops.active_wakeup = pd_active_wakeup; genpd->power_off = pd_power_down; genpd->power_on = pd_power_up;
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 <ulf.hansson@linaro.org> --- Changes in v3: Convert to renamed define. Changes in v2: None. --- arch/arm/mach-shmobile/pm-r8a7779.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)