From 3fddca3fc1690b87ccf124c4139f715bb24b9cc2 Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Mon, 20 Feb 2006 14:52:12 -0800 Subject: [PATCH] ARM: OMAP: Support all four OMAP1610 GPIO trigger modes (proposed by David Brownell) Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/gpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index a4afa1ef1f6..d3c8ea7eecf 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -452,10 +452,8 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) l &= ~(3 << (gpio << 1)); if (trigger & __IRQT_RISEDGE) l |= 2 << (gpio << 1); - else if (trigger & __IRQT_FALEDGE) + if (trigger & __IRQT_FALEDGE) l |= 1 << (gpio << 1); - else - goto bad; break; case METHOD_GPIO_730: reg += OMAP730_GPIO_INT_CONTROL; -- 2.41.1