From patchwork Thu Nov 27 14:51:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 41624 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 996A12486D for ; Thu, 27 Nov 2014 14:52:14 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gd6sf3130380lab.4 for ; Thu, 27 Nov 2014 06:52:13 -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=nzD3+VSr/vGHUVBaQJZqMtLSMv3UfxONo7XceMHlsfs=; b=RZA34K4b0wCLdE8LLMlncboVQW+O/MrJAACLbmMemPfTOjo1vL2Lo5nn2bQouW0Sb6 eLT1JWc7QHvDwnslKpW4EJPi80LFBunXrHY1Phfi1NtWx8DH5qNV1cCK+6HMGWp5gPZT 3yQ4nfpQ2hbXejOIuPk6/urx+we8Qmkau3uJDpp8eGZu6dK8l35mklLKB0aEA8JLFbPi 6zpPbuMjMlUmqYc0FuNO6rPL5+CMocM/KWPc3yGFzZFpKRtiY5TRXWph0uShgdzW/tYu guYjltOGBeAjdVuba3Cps/MqRIFPOR08m/63QLgy9+hzwh7iepuCa/GuioKnt9m19Dvs ruyA== X-Gm-Message-State: ALoCoQldexfP57dTqKDsAMKh0aC+3iAEYWO6QBnttjt33meZEB5H76R5UK/cAqfKTYxDYfpIAzi8 X-Received: by 10.180.102.228 with SMTP id fr4mr8624025wib.1.1417099933551; Thu, 27 Nov 2014 06:52:13 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.50 with SMTP id u18ls172981laz.96.gmail; Thu, 27 Nov 2014 06:52:12 -0800 (PST) X-Received: by 10.152.6.166 with SMTP id c6mr39541048laa.20.1417099932941; Thu, 27 Nov 2014 06:52:12 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id g1si7528993lah.45.2014.11.27.06.52.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 06:52:12 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so4164126lbv.25 for ; Thu, 27 Nov 2014 06:52:12 -0800 (PST) X-Received: by 10.152.37.69 with SMTP id w5mr38845612laj.67.1417099932818; Thu, 27 Nov 2014 06:52:12 -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 ew9csp808801lbc; Thu, 27 Nov 2014 06:52:12 -0800 (PST) X-Received: by 10.194.238.3 with SMTP id vg3mr22460293wjc.69.1417099932113; Thu, 27 Nov 2014 06:52:12 -0800 (PST) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com. [74.125.82.41]) by mx.google.com with ESMTPS id bf5si12342009wjc.82.2014.11.27.06.52.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 06:52:12 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.41 as permitted sender) client-ip=74.125.82.41; Received: by mail-wg0-f41.google.com with SMTP id y19so6651187wgg.14 for ; Thu, 27 Nov 2014 06:52:11 -0800 (PST) X-Received: by 10.194.123.99 with SMTP id lz3mr41100704wjb.31.1417099931875; Thu, 27 Nov 2014 06:52:11 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id l3sm11047581wje.12.2014.11.27.06.52.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Nov 2014 06:52:11 -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 V2 3/3] ARM: shmobile: Convert to genpd flags for PM clocks for R-mobile Date: Thu, 27 Nov 2014 15:51:51 +0100 Message-Id: <1417099911-12688-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417099911-12688-1-git-send-email-ulf.hansson@linaro.org> References: <1417099911-12688-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.180 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 --- 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..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;