From patchwork Wed Nov 19 14:00:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 41165 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D7C620CBB for ; Wed, 19 Nov 2014 14:01:01 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf732572eek.7 for ; Wed, 19 Nov 2014 06:01:00 -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=67XgTr1baZ9VLy3fk8BA1QUPqiAq+47f2syxzxB7l5Q=; b=YemziW4NzwAegBEQVhrCwecVQbhNy+TsKSLJ22ze+6WatLAeJF703qbxppCXL1/ed7 fzu6avSfsR39UAYkqFZj04tiRUidS/dbTs/yiOzhalYeKmE6UKSYmLcRnDuffyAyZKmN hvbeY8yrVgjTrPlxyWtkUegRXTs2gb2p/ZWkaAqq7ASNEH+rfZOoQJ8yeUwX4jT8Hqo6 O56mEYQzNu/IJTRjozFuz/dATEcC0VQiFFTpTSB/6UuuAflJFWt2XwZfAOefn8QCIeae ZS23yjSDRokLfOMBVVrJGK+HgL2/6bzsvSiXXmaydry2ZJDdgSkgfiuOiBJEEQkhdRiz OG6A== X-Gm-Message-State: ALoCoQmMOxuZ+6YxDSK7968hgurB/SrkyTebd3Y1rRThwbucLe8QwBeNySax1vhynoOb3tb3WyWq X-Received: by 10.181.12.37 with SMTP id en5mr6939808wid.6.1416405660685; Wed, 19 Nov 2014 06:01:00 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.226 with SMTP id b2ls242254lak.36.gmail; Wed, 19 Nov 2014 06:01:00 -0800 (PST) X-Received: by 10.152.88.69 with SMTP id be5mr5591592lab.36.1416405660444; Wed, 19 Nov 2014 06:01:00 -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 r5si1945019lal.3.2014.11.19.06.01.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 06:01:00 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@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 pv20so552105lab.9 for ; Wed, 19 Nov 2014 06:01:00 -0800 (PST) X-Received: by 10.152.37.69 with SMTP id w5mr5418832laj.67.1416405660346; Wed, 19 Nov 2014 06:01:00 -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 ew9csp86510lbc; Wed, 19 Nov 2014 06:00:59 -0800 (PST) X-Received: by 10.152.116.102 with SMTP id jv6mr5568244lab.40.1416405654543; Wed, 19 Nov 2014 06:00:54 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id qi2si1907385lbb.47.2014.11.19.06.00.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 06:00:54 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id gf13so538060lab.27 for ; Wed, 19 Nov 2014 06:00:54 -0800 (PST) X-Received: by 10.152.42.226 with SMTP id r2mr5610291lal.29.1416405654414; Wed, 19 Nov 2014 06:00:54 -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 ar4sm451435lbc.48.2014.11.19.06.00.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Nov 2014 06:00:53 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Simon Horman , Magnus Damm , Russell King , Dmitry Torokhov , Sylwester Nawrocki , Grygorii Strashko , Arnd Bergmann , Ulf Hansson Subject: [PATCH 3/3] ARM: shmobile: Convert to genpd flags for PM clocks for R-mobile Date: Wed, 19 Nov 2014 15:00:38 +0100 Message-Id: <1416405638-18812-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416405638-18812-1-git-send-email-ulf.hansson@linaro.org> References: <1416405638-18812-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.50 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 PM_DOMAIN_PM_CLK. Signed-off-by: Ulf Hansson --- 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..42af9bd 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 = PM_DOMAIN_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;