From 90b493ebe7df2e45715d2a53e73fcb076a65ae02 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 19 Jan 2009 01:17:59 +0000 Subject: 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 --- drivers/input/keyboard/neo1973kbd.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifdef CONFIG_PM extern int global_inside_suspend; +#else +#define global_inside_suspend 0 +#endif struct neo1973kbd { struct platform_device *pdev; -- cgit v1.2.3