From patchwork Wed Sep 3 10:52:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 36558 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D4A52039B for ; Wed, 3 Sep 2014 10:53:17 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id q200sf26576080ykb.9 for ; Wed, 03 Sep 2014 03:53:17 -0700 (PDT) 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=Ku9AYhxbrBc8qzIa65lizZg7/mkwRdy2vKpanD6AaAU=; b=dyAossD3GID4DznmS5oUCExogr4EWzJ6k7MRun8qzHsHWnaHJOvMP9rY0OwEVD5+N4 Ikx3rDn98/kfZRxdqUuuWLgEfzG2Um+8fMA7iPZy3RAyp1+WFJ+c5qaz8JhUI8ApAxYo M0MlISWJGYSiR6DMugLjDPnT2fiYGlZpGb0PH9G3bR/K6wYnzpS+K5M52uwxptyggCEP JrwyL20QQo3AWxuGUQnHE/YJIXpDvIaXS8DhSqh7UZY/qNPzpwZZS+4ys3mRjGU9HTO2 qRSgavgatOa/pZcsv9XyW8UREQ4CCnXCVwbZBH/fgCFBaxuTmHSDgVOjjDVNaq/kU4FL iw/A== X-Gm-Message-State: ALoCoQkQwesLq5iZkG816L4oPoUC8gCLR45FOVQjiRfDzLIElekDEOe78rSob+4seV8mXuFwkJqc X-Received: by 10.236.84.174 with SMTP id s34mr20280252yhe.21.1409741597255; Wed, 03 Sep 2014 03:53:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.247 with SMTP id c110ls2709777qgf.5.gmail; Wed, 03 Sep 2014 03:53:17 -0700 (PDT) X-Received: by 10.220.74.195 with SMTP id v3mr34579840vcj.23.1409741597205; Wed, 03 Sep 2014 03:53:17 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id qw8si3414424vcb.89.2014.09.03.03.53.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hy4so8521895vcb.38 for ; Wed, 03 Sep 2014 03:53:17 -0700 (PDT) X-Received: by 10.52.255.232 with SMTP id at8mr5084730vdd.4.1409741597122; Wed, 03 Sep 2014 03:53:17 -0700 (PDT) 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.221.45.67 with SMTP id uj3csp660760vcb; Wed, 3 Sep 2014 03:53:16 -0700 (PDT) X-Received: by 10.180.99.131 with SMTP id eq3mr35387609wib.5.1409741596036; Wed, 03 Sep 2014 03:53:16 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id pt8si9836649wjc.98.2014.09.03.03.53.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.172 as permitted sender) client-ip=209.85.212.172; Received: by mail-wi0-f172.google.com with SMTP id n3so648512wiv.5 for ; Wed, 03 Sep 2014 03:53:15 -0700 (PDT) X-Received: by 10.180.19.103 with SMTP id d7mr35314937wie.9.1409741595594; Wed, 03 Sep 2014 03:53:15 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id j7sm3968190wia.9.2014.09.03.03.53.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:53:15 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Daniel Lezcano , Tomasz Figa , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson Subject: [PATCH 13/15] drivers: sh: Leave disabling of unused PM domains to genpd Date: Wed, 3 Sep 2014 12:52:29 +0200 Message-Id: <1409741551-16437-14-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> References: <1409741551-16437-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.220.179 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: , Since genpd at late init, will try to disable unused PM domains we don't need to do it from here as well. Cc: Simon Horman Cc: Magnus Damm Signed-off-by: Ulf Hansson Acked-by: Simon Horman --- drivers/sh/pm_runtime.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/sh/pm_runtime.c b/drivers/sh/pm_runtime.c index 72f6381..fe2c2d5 100644 --- a/drivers/sh/pm_runtime.c +++ b/drivers/sh/pm_runtime.c @@ -75,8 +75,6 @@ static struct pm_clk_notifier_block platform_bus_notifier = { .con_ids = { NULL, }, }; -static bool default_pm_on; - static int __init sh_pm_runtime_init(void) { if (IS_ENABLED(CONFIG_ARCH_SHMOBILE_MULTI)) { @@ -96,16 +94,7 @@ static int __init sh_pm_runtime_init(void) return 0; } - default_pm_on = true; pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier); return 0; } core_initcall(sh_pm_runtime_init); - -static int __init sh_pm_runtime_late_init(void) -{ - if (default_pm_on) - pm_genpd_poweroff_unused(); - return 0; -} -late_initcall(sh_pm_runtime_late_init);