From patchwork Mon Dec 1 11:50:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 5411991 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 9988DBEEA8 for ; Mon, 1 Dec 2014 11:50:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCD492026C for ; Mon, 1 Dec 2014 11:50:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEB262028D for ; Mon, 1 Dec 2014 11:50:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753586AbaLALug (ORCPT ); Mon, 1 Dec 2014 06:50:36 -0500 Received: from mail-la0-f45.google.com ([209.85.215.45]:62834 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753334AbaLALue (ORCPT ); Mon, 1 Dec 2014 06:50:34 -0500 Received: by mail-la0-f45.google.com with SMTP id gq15so8491835lab.4 for ; Mon, 01 Dec 2014 03:50:33 -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=EPMfWaW6EoZpFaVKJarnf899M+WSWWlKaLpF+0adIJs=; b=MDEV+unjnn4saYlENIR5Ro7xltyeL+1zb4j+KtF+iDmAhpYUEolwjgOo1b/w4NIDiE hm4MVjgBQ6s5skCOWsiH5IKi2zom5M2960d7OjsxI8uU2UfvhU909bLyVQzMGzGqomFx Leb9sCdF6wN63uSX6+2pqk7t2cMY1brV1tspLROLHhZNt9ACcOkLYv9+9DY2jdCqQXqO BIHXmt4aNzJ/vMOorMOAZjBnF8CyLXk5pLRQHAlhbcn/unGd5z5vKtI+CZ6O6JQrx27P +ILbTIeOQ9G1wcnKuDgS765gUEQaZrigUBvOuVALKLBvZ6F5V6D0beEli5ln/EPMtxau zoRA== X-Gm-Message-State: ALoCoQlWhVl8IPBzaWAJq3jxr5iUzSrAi0C3xgjij6matBuqTPS3UHHNdl+u6Fd2WDpt8ZNSJL1k X-Received: by 10.112.202.71 with SMTP id kg7mr37763752lbc.16.1417434633201; Mon, 01 Dec 2014 03:50:33 -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 j2sm2056926lbs.3.2014.12.01.03.50.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Dec 2014 03:50:32 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Kevin Hilman , Simon Horman , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Magnus Damm , Russell King , Dmitry Torokhov , Sylwester Nawrocki , Grygorii Strashko , Arnd Bergmann , Ulf Hansson Subject: [PATCH V4 2/3] ARM: shmobile: Convert to genpd flags for PM clocks for r8a7779 Date: Mon, 1 Dec 2014 12:50:22 +0100 Message-Id: <1417434623-31301-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417434623-31301-1-git-send-email-ulf.hansson@linaro.org> References: <1417434623-31301-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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_FLAG_PM_CLK. Signed-off-by: Ulf Hansson Acked-by: Geert Uytterhoeven --- Changes in v4: Convert to renamed define. 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..44a74c4 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_FLAG_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;