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: 825852 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4S0Ri2B008613 for ; Sat, 28 May 2011 00:27:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932072Ab1E1A1n (ORCPT ); Fri, 27 May 2011 20:27:43 -0400 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:40428 "EHLO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757549Ab1E1A1m (ORCPT ); Fri, 27 May 2011 20:27:42 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTeBBfhupTMN78XQ7/BM8g+aK23OyWFOU@postini.com; Fri, 27 May 2011 17:27:42 PDT Received: by mail-pv0-f173.google.com with SMTP id 3so1058059pvg.4 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 Cc: linux-omap@vger.kernel.org, Jean Pihet Subject: [PATCH] PM: export suspend_set_ops, suspend_valid_only_mem 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 28 May 2011 00:27:44 +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) {