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: 4832991 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 75285C0338 for ; Wed, 3 Sep 2014 10:53:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8F0B201FB for ; Wed, 3 Sep 2014 10:53:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DDE18201CE for ; Wed, 3 Sep 2014 10:53:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756359AbaICKxX (ORCPT ); Wed, 3 Sep 2014 06:53:23 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:58410 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756284AbaICKxQ (ORCPT ); Wed, 3 Sep 2014 06:53:16 -0400 Received: by mail-wg0-f51.google.com with SMTP id l18so8296993wgh.22 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=SGR8775WjZP5MGrVMxT7xtbQ/Xt3HwimkNE4jJ4jsrJnWPDK2qnMvMw5TKQAoQF/TD CuzU/P1VzO7jpDiAjE83JmE0OvkL3Q+2Plr+EmhprtyYf1XmNF36nDXw4NKBvSTy8ub1 oCrhNcKWsgLiIRMJy8mHIsxud4vetzZnH2IiPkj1A0K9E5ifWkYYVBXny1bCtEbUSsJi 1PdGJ8GPuLP/Lg1hY0NFENeGPthq0l60Rc//bjBM+2O5+2ebS6Ah7N7STJ48CfEsQfG+ jTXb9XjfNYofgJJE0z8NXlIwD9x9pXAOJ0PXpRm6CzV7OMpew6o8L4pLuqPZEX3EFnm+ q89w== X-Gm-Message-State: ALoCoQmL15vz+RPRehy2ZDqEyIfNygQoA+dYtv2+GpSs/49g0x78+XxXqAbl04W4jeLZiQ3EuFoq 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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);