ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set
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.
Signed-off-by Kyungmin Park <[email protected]>
---
include/asm-arm/arch-omap/gpio-switch.h +4 -0
@@ -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
Quoted 10 lines · Kyungmin Park
OMAP_GPIO_SIWTCHis optional, soomap_reister_gpio_switcheswill be null.Signed-off-by Kyungmin Park <[email protected]>---
include/asm-arm/arch-omap/gpio-switch.h +0
-0@@ -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