linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP: omap_device: fix !CONFIG_SUSPEND case in _noirq handlers
@ 2011-09-01 18:12 Kevin Hilman
  2011-09-01 18:22 ` Arnd Bergmann
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2011-09-01 18:12 UTC (permalink / raw)
  To: linux-arm-kernel

The suspend/resume _noirq handlers were #ifdef'd out in the
!CONFIG_SUSPEND case, but were still assigned to the dev_pm_ops
struct.  Fix by defining them to NULL in the !CONFIG_SUSPEND case.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kevin Hilman <khilman@ti.com>
---
Applies to v3.1-rc4.

 arch/arm/plat-omap/omap_device.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c
index 9a6a538..02609ee 100644
--- a/arch/arm/plat-omap/omap_device.c
+++ b/arch/arm/plat-omap/omap_device.c
@@ -615,6 +615,9 @@ static int _od_resume_noirq(struct device *dev)
 
 	return pm_generic_resume_noirq(dev);
 }
+#else
+#define _od_suspend_noirq NULL
+#define _od_resume_noirq NULL
 #endif
 
 static struct dev_pm_domain omap_device_pm_domain = {
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-12 17:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-01 18:12 [PATCH] OMAP: omap_device: fix !CONFIG_SUSPEND case in _noirq handlers Kevin Hilman
2011-09-01 18:22 ` Arnd Bergmann
2011-09-01 21:57   ` Rafael J. Wysocki
2011-09-06 20:13     ` Kevin Hilman
2011-09-06 20:20       ` Kevin Hilman
2011-09-12 17:44         ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).