diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-25 07:12:35 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-26 19:09:52 -0400 |
commit | d6f7ce9f7fde069424e6400c31717ef34aab7e5f (patch) | |
tree | 22afbe82d756093ffa147ecd40b88f146c93dce3 /drivers/mfd | |
parent | d5bb122165981aed327845c32a9916d1b8ae0e4b (diff) |
mfd: Fold irq_set_chip/irq_set_handler
Use the combined irq_set_chip_and_handler() function
instead. Converted with coccinelle.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/asic3.c | 3 | ||||
-rw-r--r-- | drivers/mfd/htc-egpio.c | 7 | ||||
-rw-r--r-- | drivers/mfd/htc-i2cpld.c | 4 | ||||
-rw-r--r-- | drivers/mfd/t7l66xb.c | 3 | ||||
-rw-r--r-- | drivers/mfd/tc6393xb.c | 3 |
5 files changed, 8 insertions, 12 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index 22b5a78bbfdb..d4a851c6b5bf 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -416,8 +416,7 @@ static void asic3_irq_remove(struct platform_device *pdev) | |||
416 | 416 | ||
417 | for (irq = irq_base; irq < irq_base + ASIC3_NR_IRQS; irq++) { | 417 | for (irq = irq_base; irq < irq_base + ASIC3_NR_IRQS; irq++) { |
418 | set_irq_flags(irq, 0); | 418 | set_irq_flags(irq, 0); |
419 | irq_set_handler(irq, NULL); | 419 | irq_set_chip_and_handler(irq, NULL, NULL); |
420 | irq_set_chip(irq, NULL); | ||
421 | irq_set_chip_data(irq, NULL); | 420 | irq_set_chip_data(irq, NULL); |
422 | } | 421 | } |
423 | irq_set_chained_handler(asic->irq_nr, NULL); | 422 | irq_set_chained_handler(asic->irq_nr, NULL); |
diff --git a/drivers/mfd/htc-egpio.c b/drivers/mfd/htc-egpio.c index fcd89e604ab1..bbaec0ccba8f 100644 --- a/drivers/mfd/htc-egpio.c +++ b/drivers/mfd/htc-egpio.c | |||
@@ -344,9 +344,9 @@ static int __init egpio_probe(struct platform_device *pdev) | |||
344 | ei->ack_write = 0; | 344 | ei->ack_write = 0; |
345 | irq_end = ei->irq_start + ei->nirqs; | 345 | irq_end = ei->irq_start + ei->nirqs; |
346 | for (irq = ei->irq_start; irq < irq_end; irq++) { | 346 | for (irq = ei->irq_start; irq < irq_end; irq++) { |
347 | irq_set_chip(irq, &egpio_muxed_chip); | 347 | irq_set_chip_and_handler(irq, &egpio_muxed_chip, |
348 | handle_simple_irq); | ||
348 | irq_set_chip_data(irq, ei); | 349 | irq_set_chip_data(irq, ei); |
349 | irq_set_handler(irq, handle_simple_irq); | ||
350 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 350 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
351 | } | 351 | } |
352 | irq_set_irq_type(ei->chained_irq, IRQ_TYPE_EDGE_RISING); | 352 | irq_set_irq_type(ei->chained_irq, IRQ_TYPE_EDGE_RISING); |
@@ -373,8 +373,7 @@ static int __exit egpio_remove(struct platform_device *pdev) | |||
373 | if (ei->chained_irq) { | 373 | if (ei->chained_irq) { |
374 | irq_end = ei->irq_start + ei->nirqs; | 374 | irq_end = ei->irq_start + ei->nirqs; |
375 | for (irq = ei->irq_start; irq < irq_end; irq++) { | 375 | for (irq = ei->irq_start; irq < irq_end; irq++) { |
376 | irq_set_chip(irq, NULL); | 376 | irq_set_chip_and_handler(irq, NULL, NULL); |
377 | irq_set_handler(irq, NULL); | ||
378 | set_irq_flags(irq, 0); | 377 | set_irq_flags(irq, 0); |
379 | } | 378 | } |
380 | irq_set_chained_handler(ei->chained_irq, NULL); | 379 | irq_set_chained_handler(ei->chained_irq, NULL); |
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c index 9ba2a2a15dcb..d55065cc324c 100644 --- a/drivers/mfd/htc-i2cpld.c +++ b/drivers/mfd/htc-i2cpld.c | |||
@@ -348,9 +348,9 @@ static int __devinit htcpld_setup_chip_irq( | |||
348 | /* Setup irq handlers */ | 348 | /* Setup irq handlers */ |
349 | irq_end = chip->irq_start + chip->nirqs; | 349 | irq_end = chip->irq_start + chip->nirqs; |
350 | for (irq = chip->irq_start; irq < irq_end; irq++) { | 350 | for (irq = chip->irq_start; irq < irq_end; irq++) { |
351 | irq_set_chip(irq, &htcpld_muxed_chip); | 351 | irq_set_chip_and_handler(irq, &htcpld_muxed_chip, |
352 | handle_simple_irq); | ||
352 | irq_set_chip_data(irq, chip); | 353 | irq_set_chip_data(irq, chip); |
353 | irq_set_handler(irq, handle_simple_irq); | ||
354 | #ifdef CONFIG_ARM | 354 | #ifdef CONFIG_ARM |
355 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 355 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
356 | #else | 356 | #else |
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 2e1fca4715ed..42830e692964 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -243,9 +243,8 @@ static void t7l66xb_attach_irq(struct platform_device *dev) | |||
243 | irq_base = t7l66xb->irq_base; | 243 | irq_base = t7l66xb->irq_base; |
244 | 244 | ||
245 | for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) { | 245 | for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) { |
246 | irq_set_chip(irq, &t7l66xb_chip); | 246 | irq_set_chip_and_handler(irq, &t7l66xb_chip, handle_level_irq); |
247 | irq_set_chip_data(irq, t7l66xb); | 247 | irq_set_chip_data(irq, t7l66xb); |
248 | irq_set_handler(irq, handle_level_irq); | ||
249 | #ifdef CONFIG_ARM | 248 | #ifdef CONFIG_ARM |
250 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 249 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
251 | #endif | 250 | #endif |
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index 06112c8628bf..fc53ce287601 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c | |||
@@ -572,9 +572,8 @@ static void tc6393xb_attach_irq(struct platform_device *dev) | |||
572 | irq_base = tc6393xb->irq_base; | 572 | irq_base = tc6393xb->irq_base; |
573 | 573 | ||
574 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { | 574 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { |
575 | irq_set_chip(irq, &tc6393xb_chip); | 575 | irq_set_chip_and_handler(irq, &tc6393xb_chip, handle_edge_irq); |
576 | irq_set_chip_data(irq, tc6393xb); | 576 | irq_set_chip_data(irq, tc6393xb); |
577 | irq_set_handler(irq, handle_edge_irq); | ||
578 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 577 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
579 | } | 578 | } |
580 | 579 | ||