omap: define _toggle_gpio_edge_triggering only for OMAP1

The only usage of _toggle_gpio_edge_triggering is in
an #ifdef CONFIG_ARCH_OMAP1 block, so only provide it if
CONFIG_ARCH_OMAP1 is defined, too.

This fixes a compiler warning:

arch/arm/plat-omap/gpio.c:758: warning: '_toggle_gpio_edge_triggering' defined but not used

when compiling for ARCH_OMAP2, ARCH_OMAP3 or ARCH_OMAP4.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by Uwe Kleine-König and committed by Tony Lindgren 9198bcd3 abe94c75

+2 -2
+2 -2
arch/arm/plat-omap/gpio.c
··· 750 } 751 #endif 752 753 /* 754 * This only applies to chips that can't do both rising and falling edge 755 * detection at once. For all other chips, this function is a noop. ··· 761 u32 l = 0; 762 763 switch (bank->method) { 764 - #ifdef CONFIG_ARCH_OMAP1 765 case METHOD_MPUIO: 766 reg += OMAP_MPUIO_GPIO_INT_EDGE; 767 break; 768 - #endif 769 #ifdef CONFIG_ARCH_OMAP15XX 770 case METHOD_GPIO_1510: 771 reg += OMAP1510_GPIO_INT_CONTROL; ··· 786 787 __raw_writel(l, reg); 788 } 789 790 static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) 791 {
··· 750 } 751 #endif 752 753 + #ifdef CONFIG_ARCH_OMAP1 754 /* 755 * This only applies to chips that can't do both rising and falling edge 756 * detection at once. For all other chips, this function is a noop. ··· 760 u32 l = 0; 761 762 switch (bank->method) { 763 case METHOD_MPUIO: 764 reg += OMAP_MPUIO_GPIO_INT_EDGE; 765 break; 766 #ifdef CONFIG_ARCH_OMAP15XX 767 case METHOD_GPIO_1510: 768 reg += OMAP1510_GPIO_INT_CONTROL; ··· 787 788 __raw_writel(l, reg); 789 } 790 + #endif 791 792 static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) 793 {