diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 12:41:44 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-29 08:48:08 -0400 |
commit | e2f571d294cc5f944539088bed46abae375b75f6 (patch) | |
tree | a0d5013a0a4836713961b25c8c0ffea09554f088 | |
parent | 337ce6811bfe474cc449de1f95d2c4f26641f5af (diff) |
parisc: Convert irq namespace
Convert to the new function names. Scripted with coccinelle.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: linux-parisc@vger.kernel.org
-rw-r--r-- | arch/parisc/kernel/irq.c | 12 | ||||
-rw-r--r-- | drivers/parisc/eisa.c | 2 | ||||
-rw-r--r-- | drivers/parisc/gsc.c | 4 | ||||
-rw-r--r-- | drivers/parisc/superio.c | 3 |
4 files changed, 11 insertions, 10 deletions
diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c index 34bc2afa6a69..3d59d52a5dd6 100644 --- a/arch/parisc/kernel/irq.c +++ b/arch/parisc/kernel/irq.c | |||
@@ -235,13 +235,13 @@ int cpu_claim_irq(unsigned int irq, struct irq_chip *type, void *data) | |||
235 | { | 235 | { |
236 | if (irq_desc[irq].action) | 236 | if (irq_desc[irq].action) |
237 | return -EBUSY; | 237 | return -EBUSY; |
238 | if (get_irq_chip(irq) != &cpu_interrupt_type) | 238 | if (irq_get_chip(irq) != &cpu_interrupt_type) |
239 | return -EBUSY; | 239 | return -EBUSY; |
240 | 240 | ||
241 | /* for iosapic interrupts */ | 241 | /* for iosapic interrupts */ |
242 | if (type) { | 242 | if (type) { |
243 | set_irq_chip_and_handler(irq, type, handle_percpu_irq); | 243 | irq_set_chip_and_handler(irq, type, handle_percpu_irq); |
244 | set_irq_chip_data(irq, data); | 244 | irq_set_chip_data(irq, data); |
245 | __cpu_unmask_irq(irq); | 245 | __cpu_unmask_irq(irq); |
246 | } | 246 | } |
247 | return 0; | 247 | return 0; |
@@ -393,14 +393,14 @@ static void claim_cpu_irqs(void) | |||
393 | { | 393 | { |
394 | int i; | 394 | int i; |
395 | for (i = CPU_IRQ_BASE; i <= CPU_IRQ_MAX; i++) { | 395 | for (i = CPU_IRQ_BASE; i <= CPU_IRQ_MAX; i++) { |
396 | set_irq_chip_and_handler(i, &cpu_interrupt_type, | 396 | irq_set_chip_and_handler(i, &cpu_interrupt_type, |
397 | handle_percpu_irq); | 397 | handle_percpu_irq); |
398 | } | 398 | } |
399 | 399 | ||
400 | set_irq_handler(TIMER_IRQ, handle_percpu_irq); | 400 | irq_set_handler(TIMER_IRQ, handle_percpu_irq); |
401 | setup_irq(TIMER_IRQ, &timer_action); | 401 | setup_irq(TIMER_IRQ, &timer_action); |
402 | #ifdef CONFIG_SMP | 402 | #ifdef CONFIG_SMP |
403 | set_irq_handler(IPI_IRQ, handle_percpu_irq); | 403 | irq_set_handler(IPI_IRQ, handle_percpu_irq); |
404 | setup_irq(IPI_IRQ, &ipi_action); | 404 | setup_irq(IPI_IRQ, &ipi_action); |
405 | #endif | 405 | #endif |
406 | } | 406 | } |
diff --git a/drivers/parisc/eisa.c b/drivers/parisc/eisa.c index deeec32a5803..103095bbe8c0 100644 --- a/drivers/parisc/eisa.c +++ b/drivers/parisc/eisa.c | |||
@@ -340,7 +340,7 @@ static int __init eisa_probe(struct parisc_device *dev) | |||
340 | /* Reserve IRQ2 */ | 340 | /* Reserve IRQ2 */ |
341 | setup_irq(2, &irq2_action); | 341 | setup_irq(2, &irq2_action); |
342 | for (i = 0; i < 16; i++) { | 342 | for (i = 0; i < 16; i++) { |
343 | set_irq_chip_and_handler(i, &eisa_interrupt_type, | 343 | irq_set_chip_and_handler(i, &eisa_interrupt_type, |
344 | handle_simple_irq); | 344 | handle_simple_irq); |
345 | } | 345 | } |
346 | 346 | ||
diff --git a/drivers/parisc/gsc.c b/drivers/parisc/gsc.c index ef31080cf591..1bab5a2cd359 100644 --- a/drivers/parisc/gsc.c +++ b/drivers/parisc/gsc.c | |||
@@ -152,8 +152,8 @@ int gsc_assign_irq(struct irq_chip *type, void *data) | |||
152 | if (irq > GSC_IRQ_MAX) | 152 | if (irq > GSC_IRQ_MAX) |
153 | return NO_IRQ; | 153 | return NO_IRQ; |
154 | 154 | ||
155 | set_irq_chip_and_handler(irq, type, handle_simple_irq); | 155 | irq_set_chip_and_handler(irq, type, handle_simple_irq); |
156 | set_irq_chip_data(irq, data); | 156 | irq_set_chip_data(irq, data); |
157 | 157 | ||
158 | return irq++; | 158 | return irq++; |
159 | } | 159 | } |
diff --git a/drivers/parisc/superio.c b/drivers/parisc/superio.c index a4d8ff66a639..e3b76d409dee 100644 --- a/drivers/parisc/superio.c +++ b/drivers/parisc/superio.c | |||
@@ -355,7 +355,8 @@ int superio_fixup_irq(struct pci_dev *pcidev) | |||
355 | #endif | 355 | #endif |
356 | 356 | ||
357 | for (i = 0; i < 16; i++) { | 357 | for (i = 0; i < 16; i++) { |
358 | set_irq_chip_and_handler(i, &superio_interrupt_type, handle_simple_irq); | 358 | irq_set_chip_and_handler(i, &superio_interrupt_type, |
359 | handle_simple_irq); | ||
359 | } | 360 | } |
360 | 361 | ||
361 | /* | 362 | /* |