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: 4833141 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 7F5B6C0338 for ; Wed, 3 Sep 2014 11:00:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 70DFE20219 for ; Wed, 3 Sep 2014 11:00:19 +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 50C1D201CE for ; Wed, 3 Sep 2014 11:00:18 +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 1XP8DM-00023o-KQ; Wed, 03 Sep 2014 10:55:00 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XP8C6-0000zi-0c for linux-arm-kernel@lists.infradead.org; Wed, 03 Sep 2014 10:53:42 +0000 Received: by mail-wi0-f177.google.com with SMTP id cc10so9547317wib.4 for ; Wed, 03 Sep 2014 03:53:15 -0700 (PDT) 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=Ku9AYhxbrBc8qzIa65lizZg7/mkwRdy2vKpanD6AaAU=; b=hLhQ6BMQtZOJV3RkRi/VEY7eTcX8WwVLhc9o8Ht5up2HYnhvLuWpvIX0EDUAXS2n4N bxnG+5MPHSTDGciPHzyXPpw1eZSqlZaP+Vf/XzWxmQgr3aBeQBg7xEzkDj0wVYhJ+R7a 201aaH777rFaS5CkL/6nzMHPYFXVaXiVAuqW7Ne+6qZ77ujn0QBmDcxRAGjCk794bMtd io5Vt6f2RpPIfuogf178UZ3sSNDEor5GN0pYWeDzLcR1TVFm4JegqqAZDlZmjGLihmwd j25Ej9vHQK03S6FZBZ7J/8TOU1LwTo9CMYFJUl1lOmqnm3xfg/FAe8XjOAn1OkEm3II1 i3Hw== X-Gm-Message-State: ALoCoQni5nDHjVttSpBbHCIu/I+26njZEMwuxoiX53o/3mALa5VkKLGuPNtPzdK4kOSyOjmIP7Xs 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140903_035342_211008_F820E76E X-CRM114-Status: GOOD ( 11.39 ) X-Spam-Score: -0.7 (/) Cc: Simon Horman , Ulf Hansson , Kevin Hilman , Philipp Zabel , Geert Uytterhoeven , linux-sh@vger.kernel.org, Stephen Boyd , Mark Brown , Daniel Lezcano , Magnus Damm , Tomasz Figa , linux-samsung-soc@vger.kernel.org, Ben Dooks , Kukjin Kim , 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=-3.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 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);