From patchwork Thu May 27 21:13:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 102778 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4RLDOiR006849 for ; Thu, 27 May 2010 21:13:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757054Ab0E0VNX (ORCPT ); Thu, 27 May 2010 17:13:23 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:45584 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756760Ab0E0VNX (ORCPT ); Thu, 27 May 2010 17:13:23 -0400 Received: by pwi7 with SMTP id 7so248809pwi.19 for ; Thu, 27 May 2010 14:13:23 -0700 (PDT) Received: by 10.143.20.41 with SMTP id x41mr7379892wfi.216.1274994802948; Thu, 27 May 2010 14:13:22 -0700 (PDT) Received: from localhost (c-24-18-179-55.hsd1.wa.comcast.net [24.18.179.55]) by mx.google.com with ESMTPS id 21sm1259638pzk.8.2010.05.27.14.13.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 May 2010 14:13:21 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org Subject: [PATCH 1/4] platform_bus: allow custom extensions to system PM methods Date: Thu, 27 May 2010 14:13:16 -0700 Message-Id: <1274994799-30297-2-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.7.0.2 In-Reply-To: <1274994799-30297-1-git-send-email-khilman@deeprootsystems.com> References: <1274994799-30297-1-git-send-email-khilman@deeprootsystems.com> 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.3 (demeter.kernel.org [140.211.167.41]); Thu, 27 May 2010 21:13:25 +0000 (UTC) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 4b4b565..0bc478a 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -735,7 +735,7 @@ static void platform_pm_complete(struct device *dev) #ifdef CONFIG_SUSPEND -static int platform_pm_suspend(struct device *dev) +int __weak platform_pm_suspend(struct device *dev) { struct device_driver *drv = dev->driver; int ret = 0; @@ -753,7 +753,7 @@ static int platform_pm_suspend(struct device *dev) return ret; } -static int platform_pm_suspend_noirq(struct device *dev) +int __weak platform_pm_suspend_noirq(struct device *dev) { struct device_driver *drv = dev->driver; int ret = 0; @@ -769,7 +769,7 @@ static int platform_pm_suspend_noirq(struct device *dev) return ret; } -static int platform_pm_resume(struct device *dev) +int __weak platform_pm_resume(struct device *dev) { struct device_driver *drv = dev->driver; int ret = 0; @@ -787,7 +787,7 @@ static int platform_pm_resume(struct device *dev) return ret; } -static int platform_pm_resume_noirq(struct device *dev) +int __weak platform_pm_resume_noirq(struct device *dev) { struct device_driver *drv = dev->driver; int ret = 0;