public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set
@ 2007-11-29  8:01 Kyungmin Park
  2007-12-01  0:06 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Kyungmin Park @ 2007-11-29  8:01 UTC (permalink / raw)
  To: tony; +Cc: linux-omap-open-source

OMAP_GPIO_SIWTCH is optional, so omap_reister_gpio_switches will be null.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/include/asm-arm/arch-omap/gpio-switch.h b/include/asm-arm/arch-omap/gpio-switch.h
index 10da0e0..a143253 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set
  2007-11-29  8:01 [PATCH] ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set Kyungmin Park
@ 2007-12-01  0:06 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-12-01  0:06 UTC (permalink / raw)
  To: Kyungmin Park; +Cc: linux-omap-open-source

* Kyungmin Park <kyungmin.park@samsung.com> [071129 00:02]:
> OMAP_GPIO_SIWTCH is optional, so omap_reister_gpio_switches will be null.
> 
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> diff --git a/include/asm-arm/arch-omap/gpio-switch.h b/include/asm-arm/arch-omap/gpio-switch.h
> index 10da0e0..a143253 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

Pushing today.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-01  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29  8:01 [PATCH] ARM: OMAP: Make dummy wrapper if the OMAP_GPIO_SWITCH is not set Kyungmin Park
2007-12-01  0:06 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox