Commit 55f63f16 authored by Paul Mundt's avatar Paul Mundt
parents c604ff0b c507249d
......@@ -451,9 +451,9 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger)
l = __raw_readl(reg);
l &= ~(3 << (gpio << 1));
if (trigger & __IRQT_RISEDGE)
l |= 2 << gpio;
l |= 2 << (gpio << 1);
else if (trigger & __IRQT_FALEDGE)
l |= 1 << gpio;
l |= 1 << (gpio << 1);
else
goto bad;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment