Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273481
b: refs/heads/master
c: fe5a8b7
h: refs/heads/master
i:
  273479: c4ae17e
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Ralf Baechle committed Oct 24, 2011
1 parent c51775e commit a73aaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83bc769200802c9ce8fd1c7315fd14198d385b12
refs/heads/master: fe5a8b7f0602b5a536d23cd3468461e9de76256b
8 changes: 1 addition & 7 deletions trunk/arch/mips/jz4740/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,22 +301,16 @@ static void jz_gpio_irq_demux_handler(unsigned int irq, struct irq_desc *desc)
{
uint32_t flag;
unsigned int gpio_irq;
unsigned int gpio_bank;
struct jz_gpio_chip *chip = irq_desc_get_handler_data(desc);

gpio_bank = JZ4740_IRQ_GPIO0 - irq;

flag = readl(chip->base + JZ_REG_GPIO_FLAG);

if (!flag)
return;

gpio_irq = __fls(flag);
gpio_irq = chip->irq_base + __fls(flag);

jz_gpio_check_trigger_both(chip, irq);

gpio_irq += (gpio_bank << 5) + JZ4740_IRQ_GPIO(0);

generic_handle_irq(gpio_irq);
};

Expand Down

0 comments on commit a73aaa0

Please sign in to comment.