Skip to content

Commit

Permalink
[ARM] 5023/1: Fix broken gpio interrupts on ep93xx
Browse files Browse the repository at this point in the history
Change gpio_direction_output to gpio_direction_input in
ep93xx_gpio_irq_type. Fixes broken gpio interrupts.

Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ryan Mallon authored and Russell King committed May 4, 2008
1 parent 2ddcca3 commit f8b6389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int ep93xx_gpio_irq_type(unsigned int irq, unsigned int type)
const int port = gpio >> 3;
const int port_mask = 1 << (gpio & 7);

gpio_direction_output(gpio, gpio_get_value(gpio));
gpio_direction_input(gpio);

switch (type) {
case IRQT_RISING:
Expand Down

0 comments on commit f8b6389

Please sign in to comment.