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: 5337601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1562AC11AC for ; Wed, 19 Nov 2014 14:04:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F01A200F0 for ; Wed, 19 Nov 2014 14:04:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 412AC200E3 for ; Wed, 19 Nov 2014 14:04:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xr5pf-0003ws-1B; Wed, 19 Nov 2014 14:02:07 +0000 Received: from mail-lb0-f175.google.com ([209.85.217.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xr5oq-0003Re-PT for linux-arm-kernel@lists.infradead.org; Wed, 19 Nov 2014 14:01:17 +0000 Received: by mail-lb0-f175.google.com with SMTP id n15so514806lbi.20 for ; 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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=67XgTr1baZ9VLy3fk8BA1QUPqiAq+47f2syxzxB7l5Q=; b=cZY1xZ+zv7KX5eqff1FpauuzsB//mOzj1sEGEI5EO6UJEvwTX3/72aW1GHAx2+ExIK QJTrgdO3QbPa2AqUvAqX7ou/dNw4zT5wvOfe9mbdfMByoQJwy6/B51wT4YCl1PFPrwjB 3DmvdmeZXQ4iZMP5/qVPkrpvvQWkOUvikt40eUkSmFBxtB6IoZyXakz2qFRaCySK//J+ dCm82NA+YhvqS42B19yhZH+3WsnKhz/MEe6dJ7UUX8UqXmB+14ecWwGrhcB3u89skIFM MNuKGm1KFF+imgZ3WmhB5tuQLXIHRunmL50pcKPAbKUaPZtsAlHxdTxZUghXjgC3I5wb cGjQ== X-Gm-Message-State: ALoCoQnPM7e3mqv36+/eZ7++n4bbWY5Z/IYfc3pS+/hJHld5Xk9YtNHuogKJv//szKmFqvZux73Y 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141119_060117_039239_DF89018D X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -0.7 (/) Cc: Ulf Hansson , Kevin Hilman , Russell King , Arnd Bergmann , Geert Uytterhoeven , Dmitry Torokhov , Magnus Damm , linux-samsung-soc@vger.kernel.org, Simon Horman , Sylwester Nawrocki , Grygorii Strashko , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;