diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 12:52:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-29 08:48:14 -0400 |
commit | 394d441b91c146696ec2765a56be34855d375bd5 (patch) | |
tree | 7df52ac2ccb443d771f53fdd8eb754b814369d5f /arch | |
parent | 16741ea0411ff8adb9b84934433638fa432c5292 (diff) |
sparc: Convert to new irq function names
Scripted with coccinelle.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: sparclinux@vger.kernel.org
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/irq_64.c | 24 | ||||
-rw-r--r-- | arch/sparc/kernel/pci.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/pci_msi.c | 10 |
3 files changed, 16 insertions, 20 deletions
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c index 0914438418a2..ba66821d29a0 100644 --- a/arch/sparc/kernel/irq_64.c +++ b/arch/sparc/kernel/irq_64.c | |||
@@ -526,7 +526,7 @@ void irq_install_pre_handler(int irq, | |||
526 | void (*func)(unsigned int, void *, void *), | 526 | void (*func)(unsigned int, void *, void *), |
527 | void *arg1, void *arg2) | 527 | void *arg1, void *arg2) |
528 | { | 528 | { |
529 | struct irq_handler_data *handler_data = get_irq_data(irq); | 529 | struct irq_handler_data *handler_data = irq_get_handler_data(irq); |
530 | 530 | ||
531 | handler_data->pre_handler = func; | 531 | handler_data->pre_handler = func; |
532 | handler_data->arg1 = arg1; | 532 | handler_data->arg1 = arg1; |
@@ -550,13 +550,11 @@ unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap) | |||
550 | if (!irq) { | 550 | if (!irq) { |
551 | irq = irq_alloc(0, ino); | 551 | irq = irq_alloc(0, ino); |
552 | bucket_set_irq(__pa(bucket), irq); | 552 | bucket_set_irq(__pa(bucket), irq); |
553 | set_irq_chip_and_handler_name(irq, | 553 | irq_set_chip_and_handler_name(irq, &sun4u_irq, |
554 | &sun4u_irq, | 554 | handle_fasteoi_irq, "IVEC"); |
555 | handle_fasteoi_irq, | ||
556 | "IVEC"); | ||
557 | } | 555 | } |
558 | 556 | ||
559 | handler_data = get_irq_data(irq); | 557 | handler_data = irq_get_handler_data(irq); |
560 | if (unlikely(handler_data)) | 558 | if (unlikely(handler_data)) |
561 | goto out; | 559 | goto out; |
562 | 560 | ||
@@ -565,7 +563,7 @@ unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap) | |||
565 | prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n"); | 563 | prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n"); |
566 | prom_halt(); | 564 | prom_halt(); |
567 | } | 565 | } |
568 | set_irq_data(irq, handler_data); | 566 | irq_set_handler_data(irq, handler_data); |
569 | 567 | ||
570 | handler_data->imap = imap; | 568 | handler_data->imap = imap; |
571 | handler_data->iclr = iclr; | 569 | handler_data->iclr = iclr; |
@@ -588,12 +586,11 @@ static unsigned int sun4v_build_common(unsigned long sysino, | |||
588 | if (!irq) { | 586 | if (!irq) { |
589 | irq = irq_alloc(0, sysino); | 587 | irq = irq_alloc(0, sysino); |
590 | bucket_set_irq(__pa(bucket), irq); | 588 | bucket_set_irq(__pa(bucket), irq); |
591 | set_irq_chip_and_handler_name(irq, chip, | 589 | irq_set_chip_and_handler_name(irq, chip, handle_fasteoi_irq, |
592 | handle_fasteoi_irq, | ||
593 | "IVEC"); | 590 | "IVEC"); |
594 | } | 591 | } |
595 | 592 | ||
596 | handler_data = get_irq_data(irq); | 593 | handler_data = irq_get_handler_data(irq); |
597 | if (unlikely(handler_data)) | 594 | if (unlikely(handler_data)) |
598 | goto out; | 595 | goto out; |
599 | 596 | ||
@@ -602,7 +599,7 @@ static unsigned int sun4v_build_common(unsigned long sysino, | |||
602 | prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n"); | 599 | prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n"); |
603 | prom_halt(); | 600 | prom_halt(); |
604 | } | 601 | } |
605 | set_irq_data(irq, handler_data); | 602 | irq_set_handler_data(irq, handler_data); |
606 | 603 | ||
607 | /* Catch accidental accesses to these things. IMAP/ICLR handling | 604 | /* Catch accidental accesses to these things. IMAP/ICLR handling |
608 | * is done by hypervisor calls on sun4v platforms, not by direct | 605 | * is done by hypervisor calls on sun4v platforms, not by direct |
@@ -647,8 +644,7 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino) | |||
647 | irq = irq_alloc(devhandle, devino); | 644 | irq = irq_alloc(devhandle, devino); |
648 | bucket_set_irq(__pa(bucket), irq); | 645 | bucket_set_irq(__pa(bucket), irq); |
649 | 646 | ||
650 | set_irq_chip_and_handler_name(irq, &sun4v_virq, | 647 | irq_set_chip_and_handler_name(irq, &sun4v_virq, handle_fasteoi_irq, |
651 | handle_fasteoi_irq, | ||
652 | "IVEC"); | 648 | "IVEC"); |
653 | 649 | ||
654 | handler_data = kzalloc(sizeof(struct irq_handler_data), GFP_ATOMIC); | 650 | handler_data = kzalloc(sizeof(struct irq_handler_data), GFP_ATOMIC); |
@@ -660,7 +656,7 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino) | |||
660 | * the interrupt. | 656 | * the interrupt. |
661 | */ | 657 | */ |
662 | irq_set_status_flags(irq, IRQ_NOAUTOEN); | 658 | irq_set_status_flags(irq, IRQ_NOAUTOEN); |
663 | set_irq_data(irq, handler_data); | 659 | irq_set_handler_data(irq, handler_data); |
664 | 660 | ||
665 | /* Catch accidental accesses to these things. IMAP/ICLR handling | 661 | /* Catch accidental accesses to these things. IMAP/ICLR handling |
666 | * is done by hypervisor calls on sun4v platforms, not by direct | 662 | * is done by hypervisor calls on sun4v platforms, not by direct |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 44f41e312f73..713dc91020a6 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -1012,7 +1012,7 @@ int arch_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc) | |||
1012 | 1012 | ||
1013 | void arch_teardown_msi_irq(unsigned int irq) | 1013 | void arch_teardown_msi_irq(unsigned int irq) |
1014 | { | 1014 | { |
1015 | struct msi_desc *entry = get_irq_msi(irq); | 1015 | struct msi_desc *entry = irq_get_msi_desc(irq); |
1016 | struct pci_dev *pdev = entry->dev; | 1016 | struct pci_dev *pdev = entry->dev; |
1017 | struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller; | 1017 | struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller; |
1018 | 1018 | ||
diff --git a/arch/sparc/kernel/pci_msi.c b/arch/sparc/kernel/pci_msi.c index da4f4f4ebc33..30982e9ab626 100644 --- a/arch/sparc/kernel/pci_msi.c +++ b/arch/sparc/kernel/pci_msi.c | |||
@@ -133,8 +133,8 @@ static int sparc64_setup_msi_irq(unsigned int *irq_p, | |||
133 | if (!*irq_p) | 133 | if (!*irq_p) |
134 | goto out_err; | 134 | goto out_err; |
135 | 135 | ||
136 | set_irq_chip_and_handler_name(*irq_p, &msi_irq, | 136 | irq_set_chip_and_handler_name(*irq_p, &msi_irq, handle_simple_irq, |
137 | handle_simple_irq, "MSI"); | 137 | "MSI"); |
138 | 138 | ||
139 | err = alloc_msi(pbm); | 139 | err = alloc_msi(pbm); |
140 | if (unlikely(err < 0)) | 140 | if (unlikely(err < 0)) |
@@ -160,7 +160,7 @@ static int sparc64_setup_msi_irq(unsigned int *irq_p, | |||
160 | } | 160 | } |
161 | msg.data = msi; | 161 | msg.data = msi; |
162 | 162 | ||
163 | set_irq_msi(*irq_p, entry); | 163 | irq_set_msi_desc(*irq_p, entry); |
164 | write_msi_msg(*irq_p, &msg); | 164 | write_msi_msg(*irq_p, &msg); |
165 | 165 | ||
166 | return 0; | 166 | return 0; |
@@ -169,7 +169,7 @@ out_msi_free: | |||
169 | free_msi(pbm, msi); | 169 | free_msi(pbm, msi); |
170 | 170 | ||
171 | out_irq_free: | 171 | out_irq_free: |
172 | set_irq_chip(*irq_p, NULL); | 172 | irq_set_chip(*irq_p, NULL); |
173 | irq_free(*irq_p); | 173 | irq_free(*irq_p); |
174 | *irq_p = 0; | 174 | *irq_p = 0; |
175 | 175 | ||
@@ -208,7 +208,7 @@ static void sparc64_teardown_msi_irq(unsigned int irq, | |||
208 | 208 | ||
209 | free_msi(pbm, msi_num); | 209 | free_msi(pbm, msi_num); |
210 | 210 | ||
211 | set_irq_chip(irq, NULL); | 211 | irq_set_chip(irq, NULL); |
212 | irq_free(irq); | 212 | irq_free(irq); |
213 | } | 213 | } |
214 | 214 | ||