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: 5396661 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 A8EC7C11AD for ; Thu, 27 Nov 2014 14:52:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC278200FE for ; Thu, 27 Nov 2014 14:52:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F24A6201B9 for ; Thu, 27 Nov 2014 14:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751483AbaK0OwR (ORCPT ); Thu, 27 Nov 2014 09:52:17 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:43928 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996AbaK0OwN (ORCPT ); Thu, 27 Nov 2014 09:52:13 -0500 Received: by mail-wg0-f50.google.com with SMTP id k14so6657242wgh.9 for ; Thu, 27 Nov 2014 06:52:11 -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=nzD3+VSr/vGHUVBaQJZqMtLSMv3UfxONo7XceMHlsfs=; b=QxsVO7U8Fh7lWYqpZJhocZvdf1kvCPsVD0NPzU0xynsMBcSkTIXLONGlNh4eB6PxmE i5LSSgrNUxDMga4YFOC7e6GC/QlQ/ubBp+QyQ1BIcxJBN4jMi22hd/zjc1D1relevdql lZUTZIEdMQ/G7MnGF1DQhOBrWj4GAcpyxthk/v/QyXOChF4e+qwBL8d7XRXOqZW5je9v CZNiILIiwgbyY8kzWtXhtNKpL7AcAAIyZRVfBmHnKNcgWhE6sNRmmDjvJIwwQ4dpmgS7 0cC3xzvns4vIkOuNHs0QgEtvD4uJMrPtk6y3a7fAfKr591pZuVXC4PgEYIfZg+WfYCiy aPog== X-Gm-Message-State: ALoCoQlLUrQ8lPrby3t86FzaHmhDTVN70YNb4Qv0bTbU9bju2sfZskd1i74F3p5JbXcyksJL8Tuz 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> 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 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;