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: 4833021 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E82509F38D for ; Wed, 3 Sep 2014 10:53:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B5E3201CE for ; Wed, 3 Sep 2014 10:53:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62BED20219 for ; Wed, 3 Sep 2014 10:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756357AbaICKxU (ORCPT ); Wed, 3 Sep 2014 06:53:20 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:39017 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756294AbaICKxQ (ORCPT ); Wed, 3 Sep 2014 06:53:16 -0400 Received: by mail-we0-f178.google.com with SMTP id u57so8418985wes.9 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=IF4rA1rDM47zJVvY75caZXEr0L62/BMhVvZkTY1KPbsJigHL0JuBzjBZIn83tq6YvD Y+rfu0qRgdsvBqwvu3NNHxbxH2XQjuPSl3otZuaHJFr6kgtXgeAMLkai+YBZp4IA8AuL bTpnB80CgkT2nG0kDJaeFe5dzY+434qYB0qmKOAkdmKi6z8e4r53w6Dot55QWD1NVZ+b gYNGMAaCHCvJWwF3PTk6zgYKX1+UA9bFyUctjLfNCevThUC5DhQMQ7UpSfMbxw0NLuoA PqaCec2HFUdGJHVZTzSvvrME/yjfWRYY8uEWQAuegWJXKVf8H7WRq9fbT+STqLvY/jFr 80QA== X-Gm-Message-State: ALoCoQkYwHLn5um4GNv4S2uPPksyopHDJpMSkep/u62yLoxCJ9zFsJ12+yU8KHUAsYdeXkSHRksd 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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);