From patchwork Thu Jul 7 13:32:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 952882 Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p67DS4Co011947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 7 Jul 2011 13:28:24 GMT Received: from daredevil.linux-foundation.org (localhost [127.0.0.1]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id p67DQh9j021418; Thu, 7 Jul 2011 06:26:44 -0700 Received: from mail-pv0-f175.google.com (mail-pv0-f175.google.com [74.125.83.175]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id p67DOXuH021053 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Thu, 7 Jul 2011 06:24:34 -0700 Received: by pvf24 with SMTP id 24so416389pvf.6 for ; Thu, 07 Jul 2011 06:24:32 -0700 (PDT) Received: by 10.142.170.7 with SMTP id s7mr419746wfe.381.1310045072854; Thu, 07 Jul 2011 06:24:32 -0700 (PDT) Received: from [127.0.0.1] (FLH1Ama088.tky.mesh.ad.jp [202.225.112.88]) by mx.google.com with ESMTPS id v9sm3644481pbm.95.2011.07.07.06.24.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jul 2011 06:24:32 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 07 Jul 2011 22:32:45 +0900 Message-Id: <20110707133245.22347.42754.sendpatchset@t400s> In-Reply-To: <20110707133212.22347.68775.sendpatchset@t400s> References: <20110707133212.22347.68775.sendpatchset@t400s> Received-SPF: pass (localhost is always allowed.) X-Spam-Status: No, hits=-3.812 required=5 tests=BAYES_00, OSDL_HEADER_SPF_PASS, OSDL_HEADER_SUBJECT_BRACKETED X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.21 Cc: linux-pm@lists.linux-foundation.org Subject: [linux-pm] [PATCH 04/05] PM: export pm_genpd_poweron() in header X-BeenThere: linux-pm@lists.linux-foundation.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux power management List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 07 Jul 2011 13:28:24 +0000 (UTC) From: Magnus Damm Allow SoC-specific code to call pm_genpd_poweron(). Signed-off-by: Magnus Damm --- Perhaps there are better ways to deal with this? drivers/base/power/domain.c | 2 +- include/linux/pm_domain.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) --- 0001/drivers/base/power/domain.c +++ work/drivers/base/power/domain.c 2011-07-07 21:37:49.000000000 +0900 @@ -37,7 +37,7 @@ static void genpd_sd_counter_dec(struct * Restore power to @genpd and all of its parents so that it is possible to * resume a device belonging to it. */ -static int pm_genpd_poweron(struct generic_pm_domain *genpd) +int pm_genpd_poweron(struct generic_pm_domain *genpd) { int ret = 0; --- 0001/include/linux/pm_domain.h +++ work/include/linux/pm_domain.h 2011-07-07 21:37:49.000000000 +0900 @@ -63,6 +63,7 @@ extern int pm_genpd_remove_subdomain(str struct generic_pm_domain *target); extern void pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off); +extern int pm_genpd_poweron(struct generic_pm_domain *genpd); #else static inline int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev) @@ -86,6 +87,10 @@ static inline int pm_genpd_remove_subdom } static inline void pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off) {} +static inline int pm_genpd_poweron(struct generic_pm_domain *genpd) +{ + return -ENOSYS; +} #endif #endif /* _LINUX_PM_DOMAIN_H */