Message ID | 1416405638-18812-3-git-send-email-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRBFWFWKRQKGQEUIU6YBY@linaro.org> 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 2EEEB20CBB for <linaro@patches.linaro.org>; Wed, 19 Nov 2014 14:00:55 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf734054eek.11 for <linaro@patches.linaro.org>; Wed, 19 Nov 2014 06:00:54 -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=9WtKS5yX65Uzj+Bu3PeWqbcjDM47ALknzEXAPxhzQ1s=; b=FdKPmmkJF51Udb2ZKR0R7M6DAAYf5T3lxTn7tjDTBJiGuYkCmYJu4KyYkZTvE8yhd1 8QJbYB/u0UEruWnsL41b6XLqi8uXcJQpMCGRq5nIGsq78nD9Y/hr7H0twYKqKlrtmomm 6DULGmDER/CAPbzDjwuHJhwE389lmmuz7wQchtgPkTvGgD+D+eDxkCfflmBlBDUiNI+9 JzGOzrx3tj5gcqmihCEa5M66J63OTXXzBcX1LW0fFDqWaY7N/HMkBdPmJ1LV4so/3dlS cK7DkX3WPgeV7faUtMsu1KrM9BY3Cu5zPoW/nlNjmkNFJEmkBQ3yr34gtDErmRY5M59U RgWA== X-Gm-Message-State: ALoCoQnQTMSykim+GSTCxJs5b80oI/uw0tmeX1sem6cIf6ieBkCCkEibGUoG+NYYfa5nQ1HEw3KH X-Received: by 10.152.6.4 with SMTP id w4mr546941law.7.1416405654420; Wed, 19 Nov 2014 06:00:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.227 with SMTP id i3ls1120267lae.28.gmail; Wed, 19 Nov 2014 06:00:53 -0800 (PST) X-Received: by 10.112.168.39 with SMTP id zt7mr5504304lbb.72.1416405653903; Wed, 19 Nov 2014 06:00:53 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id u4si1920618lae.31.2014.11.19.06.00.53 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 06:00:53 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so583113lbj.13 for <patchwork-forward@linaro.org>; Wed, 19 Nov 2014 06:00:53 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr5611118lbc.34.1416405653753; Wed, 19 Nov 2014 06:00:53 -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 ew9csp86482lbc; Wed, 19 Nov 2014 06:00:53 -0800 (PST) X-Received: by 10.152.87.171 with SMTP id az11mr5423968lab.37.1416405652156; Wed, 19 Nov 2014 06:00:52 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ms6si1930721lbb.19.2014.11.19.06.00.52 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 06:00:52 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id s18so539396lam.7 for <patches@linaro.org>; Wed, 19 Nov 2014 06:00:52 -0800 (PST) X-Received: by 10.153.7.72 with SMTP id da8mr2056689lad.90.1416405652008; Wed, 19 Nov 2014 06:00:52 -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.49 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Nov 2014 06:00:51 -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>, linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be>, Kevin Hilman <khilman@linaro.org>, Simon Horman <horms@verge.net.au>, 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 2/3] ARM: shmobile: Convert to genpd flags for PM clocks for r8a7779 Date: Wed, 19 Nov 2014 15:00:37 +0100 Message-Id: <1416405638-18812-3-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.217.182 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..6d1c011 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 = PM_DOMAIN_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 PM_DOMAIN_PM_CLK. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- arch/arm/mach-shmobile/pm-r8a7779.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)