From patchwork Tue Jun 10 10:51:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 4328271 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 C3660BEEAA for ; Tue, 10 Jun 2014 11:00:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 065E4202A1 for ; Tue, 10 Jun 2014 11:00:46 +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 3E89A20204 for ; Tue, 10 Jun 2014 11:00:44 +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 1WuJk8-0002Bk-TJ; Tue, 10 Jun 2014 10:57:28 +0000 Received: from mail-la0-f48.google.com ([209.85.215.48]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WuJfy-000564-7J for linux-arm-kernel@lists.infradead.org; Tue, 10 Jun 2014 10:53:10 +0000 Received: by mail-la0-f48.google.com with SMTP id mc6so3761270lab.7 for ; Tue, 10 Jun 2014 03:52:46 -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=/21ktk9u9cCE/PdXbeSHO2CC4tYOXL6/8xR/wmFtzcA=; b=FWTQwN+FD4uYbU5mGB8LHw2ULR5sMWpfrlDf/vRXIot2pj4QyuUpm8YafgjbRbuar7 tj/o4CvhTl1Q6WcsDD53nJCQra/aGkAAoY3feI4TfIDas5sOttr3fQ4rGB/2CbIP9g1D 9JJJdLD42ZoPD7Jr+QUHoxMbSIkLZLSEp5FRTwXzSnGdRVwBMBGCpAlMzGS2/scMCg3L zh0PpyUWUz3QJxwLejxBFWbSWox7xvdw/lQkbWNYPC5lA744ZI9kPAzZFVUuRdDV/EA0 qGeAmjdXflo/x4YS1ayuG+WyYdFPwerKnnxW2UqRfYEpJWtNyabNt1DgmbhTp++t5VAC 31pA== X-Gm-Message-State: ALoCoQmNgeSGKHNQ/pduTlD6ZJZkw+nEi31j7CThrpTcbj9cXGDiWllumxXeaip55dXy/uD+F9z9 X-Received: by 10.152.23.233 with SMTP id p9mr22257665laf.31.1402397566241; Tue, 10 Jun 2014 03:52:46 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id y6sm18329925laj.17.2014.06.10.03.52.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:45 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Subject: [PATCH 17/24] drivers: sh: Leave disabling of unused pm domains to genpd Date: Tue, 10 Jun 2014 12:51:30 +0200 Message-Id: <1402397497-26737-18-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402397497-26737-1-git-send-email-ulf.hansson@linaro.org> References: <1402397497-26737-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140610_035310_471278_3A99DF56 X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Ulf Hansson , Kevin Hilman , Philipp Zabel , Greg Kroah-Hartman , Linus Walleij , Daniel Lezcano , Magnus Damm , Tomasz Figa , Simon Horman , Alan Stern , Mark Brown , Ben Dooks , Kukjin Kim , Stephen Boyd , 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=-2.5 required=5.0 tests=BAYES_00,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 domains we don't need to handle it from here as well. Cc: Simon Horman Cc: Magnus Damm Signed-off-by: Ulf Hansson --- 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 10c65eb..ea8b081 100644 --- a/drivers/sh/pm_runtime.c +++ b/drivers/sh/pm_runtime.c @@ -50,8 +50,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)) { @@ -68,16 +66,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);