aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorWerner Almesberger <werner@openmoko.org>2009-01-19 01:17:59 +0000
committerAndy Green <agreen@octopus.localdomain>2009-01-19 01:17:59 +0000
commit90b493ebe7df2e45715d2a53e73fcb076a65ae02 (patch)
treefaa85840c1237f53ed2e04a09b4600ab9faecb0c /drivers/input
parentefbfa7905faa09148dce3987aa78672a7ef132ae (diff)
Make neo1973kbd.c build without CONFIG_PM
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@openmoko.org>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/neo1973kbd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/keyboard/neo1973kbd.c b/drivers/input/keyboard/neo1973kbd.c
index 929a2bbfcee..56bc9ee0d82 100644
--- a/drivers/input/keyboard/neo1973kbd.c
+++ b/drivers/input/keyboard/neo1973kbd.c
@@ -26,7 +26,11 @@
#include <mach/gpio.h>
#include <asm/mach-types.h>
+#ifdef CONFIG_PM
extern int global_inside_suspend;
+#else
+#define global_inside_suspend 0
+#endif
struct neo1973kbd {
struct platform_device *pdev;