From patchwork Fri Nov 28 08:30:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 5401941 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 7FCBEBEEA8 for ; Fri, 28 Nov 2014 08:39:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD9E320138 for ; Fri, 28 Nov 2014 08:39:23 +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 86DE6200E7 for ; Fri, 28 Nov 2014 08:39:22 +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 1XuH3K-0002Go-Iu; Fri, 28 Nov 2014 08:37:22 +0000 Received: from mail-lb0-f176.google.com ([209.85.217.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XuH3F-000258-QK for linux-arm-kernel@lists.infradead.org; Fri, 28 Nov 2014 08:37:18 +0000 Received: by mail-lb0-f176.google.com with SMTP id p9so5155118lbv.21 for ; Fri, 28 Nov 2014 00:36:53 -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=7vIKOEq4UpYRuMKI/3QBnjWwQS9rMAV62+hCZXRybY8=; b=lQWLP51PyRGV6l/eOw3ETTJx9hGw/NCx4lKd6ObEWhgi+EWv0FrdU23nFniiZ5a4sP /Xhv3ZsRVbgz8W1ceT/giGLLIEqaMO2mTEWBsNqdAe6126eKexcMAIcUOciIPjwp1TbB 0xGiJm2Ft9RHIQvhUf1RjoY8bzVbSOYFDK7aqDvAPcKAxiGsbrb5+oALcIHGgBEZ6yAd XMiiFDBT0AeQdapufcsSxjIJOCbPwfVd8M+ZhUSqalja7bUlJDkIDl51f/myjhc6BmRj MMcYGbWjqicYJ80QcYkN4Au0OKfie6IsFQXUuKlmDyPaXyBblgbvYvFVUi89vj1hTm9f IeLg== X-Gm-Message-State: ALoCoQlHbguMdRuUGT430Sfh0OZgn+15X+lLCsD58RpHfuDymvB2z7gJOI3soge3hyC6AyA06nrP X-Received: by 10.152.203.137 with SMTP id kq9mr42434361lac.51.1417163414009; Fri, 28 Nov 2014 00:30:14 -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 z1sm2419274lad.40.2014.11.28.00.30.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Nov 2014 00:30:13 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Kevin Hilman , Simon Horman , linux-pm@vger.kernel.org Subject: [PATCH V3 2/3] ARM: shmobile: Convert to genpd flags for PM clocks for r8a7779 Date: Fri, 28 Nov 2014 09:30:02 +0100 Message-Id: <1417163403-7070-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417163403-7070-1-git-send-email-ulf.hansson@linaro.org> References: <1417163403-7070-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141128_003718_039314_6C71A8EE X-CRM114-Status: GOOD ( 10.69 ) X-Spam-Score: -0.7 (/) Cc: Ulf Hansson , linux-samsung-soc@vger.kernel.org, Russell King , Arnd Bergmann , Geert Uytterhoeven , Dmitry Torokhov , Magnus Damm , Grygorii Strashko , Sylwester Nawrocki , 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 GENPD_PM_CLK. Signed-off-by: Ulf Hansson --- Changes in v3: Convert to renamed define. Changes in v2: None. --- arch/arm/mach-shmobile/pm-r8a7779.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index 82fe3d7..3a09ae7 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 = GENPD_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;