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 <[email protected]> --- 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; +#else +#define global_inside_suspend 0 +#endif struct neo1973kbd { struct platform_device *pdev;
