]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set
authorKyungmin Park <kyungmin.park@samsung.com>
Thu, 29 Nov 2007 08:01:37 +0000 (17:01 +0900)
committerTony Lindgren <tony@atomide.com>
Sat, 1 Dec 2007 00:05:15 +0000 (16:05 -0800)
OMAP_GPIO_SIWTCH is optional, so omap_reister_gpio_switches will be null.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/arch-omap/gpio-switch.h

index 10da0e07c0cf8998b926a3680b042936e77e5129..a143253969ceef529d5f5022459d43b0dc3e15a9 100644 (file)
@@ -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