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: 31638 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2A0DF20675 for ; Tue, 10 Jun 2014 10:52:49 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id lx4sf7945997iec.4 for ; Tue, 10 Jun 2014 03:52:48 -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=/21ktk9u9cCE/PdXbeSHO2CC4tYOXL6/8xR/wmFtzcA=; b=C7827X6YlwhvFGjSQ6gjPe9NmH/k+5n0OJIWJOu2S9RKtoIEFEwtUsPQ1h24FPInqA hy87+D8EesXY4hS36qh47K30daTqkDGnf3g4EBLvRSz+Ec3vRCqXaDxEs9k3Eaa46jMK AXXLpgTwsG+G90/syT0uAc3jwKDDX48mNYYJtpDCzBIwLkDbRYZnZOoJYh405EGihSb3 wVFzCZ3oAuPMUwzRhxKhJpARPAHZWDi4FEGetosPi7dSaEbZjyiIo6mnSL4ybhEm7PGw S1BUr2/cTM9GwQrkCdRq74rIzSUdhttEoAZ7bPtCxamhKBNmVR6DfHwEWAYvRezGCAe4 AuZw== X-Gm-Message-State: ALoCoQmsBww9vj4YUgArMyNBCWvTOs/I2s0rrlDTluaTG6CTLTkLGheo4rS24GSYxSyUlhMO8aXR X-Received: by 10.42.85.142 with SMTP id q14mr14857823icl.16.1402397568700; Tue, 10 Jun 2014 03:52:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.37 with SMTP id g34ls2066935qgd.64.gmail; Tue, 10 Jun 2014 03:52:48 -0700 (PDT) X-Received: by 10.220.163.201 with SMTP id b9mr57580vcy.79.1402397568536; Tue, 10 Jun 2014 03:52:48 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id dm6si11666690vcb.96.2014.06.10.03.52.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so32987vcb.7 for ; Tue, 10 Jun 2014 03:52:48 -0700 (PDT) X-Received: by 10.52.185.72 with SMTP id fa8mr26962295vdc.12.1402397568464; Tue, 10 Jun 2014 03:52:48 -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.54.6 with SMTP id vs6csp215572vcb; Tue, 10 Jun 2014 03:52:47 -0700 (PDT) X-Received: by 10.112.157.162 with SMTP id wn2mr20937674lbb.38.1402397566834; Tue, 10 Jun 2014 03:52:46 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx.google.com with ESMTPS id c9si21103466lah.10.2014.06.10.03.52.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id pn19so3811862lab.20 for ; Tue, 10 Jun 2014 03:52:46 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, Kevin Hilman , Alan Stern , Greg Kroah-Hartman , Daniel Lezcano , Tomasz Figa , devicetree@vger.kernel.org, Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson 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-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.176 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 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);