Skip to contentSkip to conversation

ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set

PATCH In review Kyungmin Park 2 participants 2 messages Nov 29, 2007 – Dec 1, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

include/asm-arm/arch-omap/gpio-switch.h +4 -0
index 10da0e0..a143253 100644
@@ -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
#1 lore raw
Quoted 10 lines · Kyungmin Park

OMAP_GPIO_SIWTCH is optional, so omap_reister_gpio_switches will be null.

---

include/asm-arm/arch-omap/gpio-switch.h +0 -0
index 10da0e0..a143253 100644
@@ -48,7 +48,11 @@ struct omap_gpio_switch {
 };

include/asm-arm/arch-omap/gpio-switch.h struct omap_gpio_switch { · line 58

Quoted 10 lines
include/asm-arm/arch-omap/gpio-switch.h +4 -0
 
 /* 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

Pushing today.

Tony