From patchwork Thu Nov 27 14:51:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 41623 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3DCA72486D for ; Thu, 27 Nov 2014 14:52:12 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf3287543wib.6 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: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=4rMEls6wsHutQnoWNV9zBJIt8soTPHee/6VzfR2hbF0=; b=SCPmrjoYT4pvKmnnYBDeiBCJLQ2IyDR3+HsyF2TluSK/B1Jk2ie4vak3dzR3R2fqNi 6aOAzXNRsSvdkat26bOaWZYbfs/GJ46c53L8gHLkZIijK1HVGh6phbjgv/9zfSi8eULu /D30OYd250LE+4/lSEu1gBaHK8YbY25dpzvinEhA+Wi7VICBArIT02iCoqaCEMk7s9MK Nyccavl+1tfiD8uR+Tv53+JxjQoybPsO0gTtPTSG1hwPscnE6ikKlSqVj+RtgYHINlD/ H6L6pWdgndDTSaAXhKQ7/tCPT4+wd3h6cfJkH6NY+TBtcEOsHQ4+jSJqrUCsj8XQxmSb y3kQ== X-Gm-Message-State: ALoCoQm02SUH9hGJBcOzHcSyb1tehKFniHqkSRlgIGbt/Y8avwmmIoUGkS8tegv8WmVQAbcPfPcN X-Received: by 10.194.95.74 with SMTP id di10mr1119871wjb.0.1417099931433; Thu, 27 Nov 2014 06:52:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.170 with SMTP id s10ls379587laa.58.gmail; Thu, 27 Nov 2014 06:52:10 -0800 (PST) X-Received: by 10.152.28.72 with SMTP id z8mr40296256lag.52.1417099930827; Thu, 27 Nov 2014 06:52:10 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id q2si1131557lae.30.2014.11.27.06.52.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 06:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id ge10so4331308lab.17 for ; Thu, 27 Nov 2014 06:52:10 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr39107700lad.44.1417099930759; Thu, 27 Nov 2014 06:52:10 -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 ew9csp808795lbc; Thu, 27 Nov 2014 06:52:10 -0800 (PST) X-Received: by 10.180.76.201 with SMTP id m9mr51003163wiw.52.1417099930064; Thu, 27 Nov 2014 06:52:10 -0800 (PST) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com. [74.125.82.46]) by mx.google.com with ESMTPS id kx9si12346079wjb.80.2014.11.27.06.52.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 06:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.46 as permitted sender) client-ip=74.125.82.46; Received: by mail-wg0-f46.google.com with SMTP id x12so6660557wgg.5 for ; Thu, 27 Nov 2014 06:52:09 -0800 (PST) X-Received: by 10.181.8.98 with SMTP id dj2mr38694562wid.81.1417099929802; Thu, 27 Nov 2014 06:52:09 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id l3sm11047581wje.12.2014.11.27.06.52.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Nov 2014 06:52:08 -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 2/3] ARM: shmobile: Convert to genpd flags for PM clocks for r8a7779 Date: Thu, 27 Nov 2014 15:51:50 +0100 Message-Id: <1417099911-12688-3-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.215.44 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-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..6d1c011 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 = PM_DOMAIN_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;