From 6fc38366160f5710709110b057e6766e770ecb5a Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Thu, 29 Nov 2007 17:01:37 +0900 Subject: [PATCH] ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set OMAP_GPIO_SIWTCH is optional, so omap_reister_gpio_switches will be null. Signed-off-by: Kyungmin Park Signed-off-by: Tony Lindgren --- include/asm-arm/arch-omap/gpio-switch.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asm-arm/arch-omap/gpio-switch.h b/include/asm-arm/arch-omap/gpio-switch.h index 10da0e07c0c..a143253969c 100644 --- a/include/asm-arm/arch-omap/gpio-switch.h +++ b/include/asm-arm/arch-omap/gpio-switch.h @@ -48,7 +48,11 @@ struct omap_gpio_switch { }; /* Call at init time only */ +#ifdef CONFIG_OMAP_GPIO_SWITCH extern void omap_register_gpio_switches(const struct omap_gpio_switch *tbl, int count); +#else +#define omap_register_gpio_switches(tbl, count) do { } while (0) +#endif #endif -- 2.41.1