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: 41667 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE8DB25E46 for ; Fri, 28 Nov 2014 08:30:19 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id ge10sf294761lab.4 for ; Fri, 28 Nov 2014 00:30:18 -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=Kjrtt5wFEXZlYRe6mGmmKbIDz7U/jjl/2QDknIUm6Uk=; b=ZkS+UCLi4b+z2/gqk+KzqWqNiyMWWMPgWWZr+rnsx97f43/v79boQ5dT6qt4B1/bIg MhgiwqUsOFUWoZX6BjymfPnLsKwB0I6Klzdleu1MsontOcudtkxId6O8M5UzkCuLyL5p +vKACbb7UDXhYFjzHC7fcmNv+n31HgZex3VdX8WfqYpKRtirTH8pEdbuwY1nBQvOH9Be fjSO39GviWzFC455fmM14RyFf2Pb9keFU6Jw5XU7LGPb/RsghT759xgGFhi6xO+2mzP8 sqfxpZQUENP2Msww6hWBlC93FcgLGg8eU9dnreAe9+RRfvZC1dntevok7nk0O5V8Abli bfLQ== X-Gm-Message-State: ALoCoQli3BVPPpPe0ytvn2UrBlAb4dGP7Cvn7A87FXsUVjYkqwzkt3bTYARa39TowWH51kzE9VjP X-Received: by 10.112.89.195 with SMTP id bq3mr11977224lbb.9.1417163418724; Fri, 28 Nov 2014 00:30:18 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.72 with SMTP id j8ls723930lag.105.gmail; Fri, 28 Nov 2014 00:30:18 -0800 (PST) X-Received: by 10.152.203.137 with SMTP id kq9mr42434641lac.51.1417163418363; Fri, 28 Nov 2014 00:30:18 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id qu3si9326313lbb.27.2014.11.28.00.30.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 00:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gq15so5337580lab.18 for ; Fri, 28 Nov 2014 00:30:18 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr41687091lbr.74.1417163418279; Fri, 28 Nov 2014 00:30:18 -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 ew9csp51862lbc; Fri, 28 Nov 2014 00:30:17 -0800 (PST) X-Received: by 10.152.179.67 with SMTP id de3mr42331141lac.73.1417163416820; Fri, 28 Nov 2014 00:30:16 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id ol9si9343980lbb.2.2014.11.28.00.30.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 00:30:16 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so5147087lbv.21 for ; Fri, 28 Nov 2014 00:30:16 -0800 (PST) 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> 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.45 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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;