[PATCH 4/5] Make neo1973kbd.c build without CONFIG_PM

Werner Almesberger werner at openmoko.org
Sun Jan 18 01:18:33 CET 2009

global_inside_suspend only exists if CONFIG_PM is enabled.

We're actually the only ones using it outside power management,
so I guess it's okay not to try to find a more elegant solution
for upstream.

Signed-off-by: Werner Almesberger <werner at openmoko.org>


Index: ktrack/drivers/input/keyboard/neo1973kbd.c
--- ktrack.orig/drivers/input/keyboard/neo1973kbd.c	2009-01-17 21:33:27.000000000 -0200
+++ ktrack/drivers/input/keyboard/neo1973kbd.c	2009-01-17 21:33:51.000000000 -0200
@@ -26,7 +26,11 @@
 #include <mach/gpio.h>
 #include <asm/mach-types.h>
+#ifdef CONFIG_PM
 extern int global_inside_suspend;
+#define global_inside_suspend 0
 struct neo1973kbd {
 	struct platform_device *pdev;

More information about the openmoko-kernel mailing list