From: Kyungmin Park Date: Thu, 29 Nov 2007 08:01:37 +0000 (+0900) Subject: ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set X-Git-Tag: v2.6.24-omap1~136 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6fc38366160f5710709110b057e6766e770ecb5a;p=linux-2.6-omap-h63xx.git 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 --- 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