From patchwork Sat May 28 00:33:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 825902 Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4S0o2P5013898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 28 May 2011 00:50:22 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 p4S0mXtk028581; Fri, 27 May 2011 17:48:33 -0700 Received: from na3sys009aog108.obsmtp.com (na3sys009aog108.obsmtp.com [74.125.149.199]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with SMTP id p4S0RpJJ025714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 27 May 2011 17:27:53 -0700 Received: from mail-px0-f178.google.com ([209.85.212.178]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKTeBBfhupTMN78XQ7/BM8g+aK23OyWFOU@postini.com; Fri, 27 May 2011 17:27:53 PDT Received: by mail-px0-f178.google.com with SMTP id 25so405999pxj.37 for ; Fri, 27 May 2011 17:27:42 -0700 (PDT) Received: by 10.68.62.106 with SMTP id x10mr537539pbr.281.1306542461941; Fri, 27 May 2011 17:27:41 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net [24.19.7.36]) by mx.google.com with ESMTPS id w2sm889009pbg.53.2011.05.27.17.27.40 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2011 17:27:41 -0700 (PDT) From: Kevin Hilman To: linux-pm@lists.linux-foundation.org Date: Fri, 27 May 2011 17:33:59 -0700 Message-Id: <1306542839-5688-1-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.4 Received-SPF: pass (localhost is always allowed.) X-Spam-Status: No, hits=-105.748 required=5 tests=AWL, BAYES_00, OSDL_HEADER_SPF_PASS, OSDL_HEADER_SUBJECT_BRACKETED, PATCH_SUBJECT_OSDL, USER_IN_WHITELIST 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-omap@vger.kernel.org, Jean Pihet Subject: [linux-pm] [PATCH] PM: export suspend_set_ops, suspend_valid_only_mem 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 (demeter1.kernel.org [140.211.167.41]); Sat, 28 May 2011 00:50:22 +0000 (UTC) Some platforms wish to implement their PM core suspend code as modules. To do so, these functions need to be exported to modules. Reported-by: Jean Pihet Signed-off-by: Kevin Hilman --- Applies against v2.6.39 kernel/power/suspend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 6275970..eca495d 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -44,6 +44,7 @@ void suspend_set_ops(const struct platform_suspend_ops *ops) suspend_ops = ops; mutex_unlock(&pm_mutex); } +EXPORT_SYMBOL(suspend_set_ops); bool valid_state(suspend_state_t state) { @@ -65,6 +66,7 @@ int suspend_valid_only_mem(suspend_state_t state) { return state == PM_SUSPEND_MEM; } +EXPORT_SYMBOL(suspend_valid_only_mem); static int suspend_test(int level) {