Skip to content

Commit

Permalink
sh: mach-x3proto: irq_data conversion.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Oct 27, 2010
1 parent 5f01038 commit 79c9812
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/sh/boards/mach-x3proto/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,19 @@ static int x3proto_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)

static void x3proto_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
{
struct irq_chip *chip = get_irq_desc_chip(desc);
struct irq_data *data = irq_get_irq_data(irq);
struct irq_chip *chip = irq_data_get_irq_chip(data);
unsigned long mask;
int pin;

chip->mask_ack(irq);
chip->irq_mask_ack(data);

mask = __raw_readw(KEYDETR);

for_each_set_bit(pin, &mask, NR_BASEBOARD_GPIOS)
generic_handle_irq(x3proto_gpio_to_irq(NULL, pin));

chip->unmask(irq);
chip->irq_unmask(data);
}

struct gpio_chip x3proto_gpio_chip = {
Expand Down

0 comments on commit 79c9812

Please sign in to comment.