From patchwork Mon Dec 1 11:50:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 41764 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 18DB424001 for ; Mon, 1 Dec 2014 11:50:38 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf6431626lab.7 for ; Mon, 01 Dec 2014 03:50:37 -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=qUuOK4lClBDykNVKE0t3f2Me3Nl5ycX4ERJm1OeCXfQ=; b=iz5hGPY3WWYQWQnWi+3SqPDOfE43L1DA1JTXr8Q/tWWkEEtrlLvv1xB2vRxfFvLVTt gGTgmN6f/JHbiSRmq2eeJeO2e2QMsHxsJg1xpaFkt9wQj1EssgBfrqDM/vZslZ7pZFHY HSMDq0Eza7uGBab0bkM8ENFHsvM1R9b0gQS9yK/EHraaIvefCgb4kHIpFxUvxHJPJNiL 9tbH5jdR4GcG50gTfn4HI97YpXQCCC9pcOl61dCH0bv5oH5tFb2ALVGShEa2RZp+MvB+ Z0X99cYDPUOHUfEvu+IjsfexR4iodAFCX5bIILBw7yJ4aKMQjDSHGtn+ofdkz3PTPdUI ZeSg== X-Gm-Message-State: ALoCoQkN5kJEUfMJA9HsolFqaNjjcgeCyCOy9LtuuRqKfWa3qKrOzrdb77Ocutr2bB7xy22gyGln X-Received: by 10.152.42.196 with SMTP id q4mr501760lal.6.1417434637031; Mon, 01 Dec 2014 03:50:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.6 with SMTP id u6ls1051287laj.26.gmail; Mon, 01 Dec 2014 03:50:36 -0800 (PST) X-Received: by 10.152.164.232 with SMTP id yt8mr56515966lab.7.1417434636672; Mon, 01 Dec 2014 03:50:36 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id jn6si17387910lbc.119.2014.12.01.03.50.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 03:50:36 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id 10so8281144lbg.22 for ; Mon, 01 Dec 2014 03:50:36 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr56368794lbc.34.1417434636582; Mon, 01 Dec 2014 03:50:36 -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 ew9csp270169lbc; Mon, 1 Dec 2014 03:50:36 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr55550906lbc.66.1417434635994; Mon, 01 Dec 2014 03:50:35 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id rd5si15902376lbb.73.2014.12.01.03.50.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 03:50:35 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pn19so7716912lab.23 for ; Mon, 01 Dec 2014 03:50:35 -0800 (PST) X-Received: by 10.152.18.130 with SMTP id w2mr44056568lad.1.1417434635839; Mon, 01 Dec 2014 03:50:35 -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 j2sm2056926lbs.3.2014.12.01.03.50.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Dec 2014 03:50:34 -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 V4 3/3] ARM: shmobile: Convert to genpd flags for PM clocks for R-mobile Date: Mon, 1 Dec 2014 12:50:23 +0100 Message-Id: <1417434623-31301-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417434623-31301-1-git-send-email-ulf.hansson@linaro.org> References: <1417434623-31301-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.217.177 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_FLAG_PM_CLK. Signed-off-by: Ulf Hansson Acked-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- Changes in v4: Convert to renamed define. 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..6f7d56e 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_FLAG_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;