Commit 08f1b807355c8d355885a71e7fd462fe9d499411

Authored by Thomas Gleixner
1 parent b51804bcf0

gpio: Fold irq_set_chip/irq_set_handler to irq_set_chip_and_handler

Converted with coccinelle.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
LKML-Reference: <20110324212509.118888535@linutronix.de>

Showing 2 changed files with 3 additions and 4 deletions Side-by-side Diff

drivers/gpio/pl061.c
... ... @@ -315,8 +315,8 @@
315 315 else
316 316 pl061_direction_input(&chip->gc, i);
317 317  
318   - irq_set_chip(i + chip->irq_base, &pl061_irqchip);
319   - irq_set_handler(i + chip->irq_base, handle_simple_irq);
  318 + irq_set_chip_and_handler(i + chip->irq_base, &pl061_irqchip,
  319 + handle_simple_irq);
320 320 set_irq_flags(i+chip->irq_base, IRQF_VALID);
321 321 irq_set_chip_data(i + chip->irq_base, chip);
322 322 }
drivers/gpio/sx150x.c
... ... @@ -583,8 +583,7 @@
583 583  
584 584 for (n = 0; n < chip->dev_cfg->ngpios; ++n) {
585 585 irq = chip->irq_base + n;
586   - irq_set_handler(irq, NULL);
587   - irq_set_chip(irq, NULL);
  586 + irq_set_chip_and_handler(irq, NULL, NULL);
588 587 }
589 588 }
590 589