aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-12 06:20:43 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-03-12 08:12:00 -0500
commit2c778651f73d92edb847e65d371bb29b17c7ca60 (patch)
tree1ddea54ef26bc40c4abc6594ca3f394aed91e17a /arch/x86
parentc1c5e4d463f844e5d44cafab752049267c102ca3 (diff)
x86: Cleanup the genirq name space
genirq is switching to a consistent name space for the irq related functions. Convert x86. Conversion was done with coccinelle. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/apic/io_apic.c75
-rw-r--r--arch/x86/kernel/hpet.c2
-rw-r--r--arch/x86/kernel/i8259.c2
-rw-r--r--arch/x86/kernel/irqinit.c2
-rw-r--r--arch/x86/lguest/boot.c4
-rw-r--r--arch/x86/pci/xen.c8
-rw-r--r--arch/x86/platform/uv/uv_irq.c4
-rw-r--r--arch/x86/platform/visws/visws_quirks.c2
8 files changed, 51 insertions, 48 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 8d23e831a45e..7a88b04202e2 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -187,7 +187,7 @@ int __init arch_early_irq_init(void)
187 irq_reserve_irqs(0, legacy_pic->nr_legacy_irqs); 187 irq_reserve_irqs(0, legacy_pic->nr_legacy_irqs);
188 188
189 for (i = 0; i < count; i++) { 189 for (i = 0; i < count; i++) {
190 set_irq_chip_data(i, &cfg[i]); 190 irq_set_chip_data(i, &cfg[i]);
191 zalloc_cpumask_var_node(&cfg[i].domain, GFP_KERNEL, node); 191 zalloc_cpumask_var_node(&cfg[i].domain, GFP_KERNEL, node);
192 zalloc_cpumask_var_node(&cfg[i].old_domain, GFP_KERNEL, node); 192 zalloc_cpumask_var_node(&cfg[i].old_domain, GFP_KERNEL, node);
193 /* 193 /*
@@ -206,7 +206,7 @@ int __init arch_early_irq_init(void)
206#ifdef CONFIG_SPARSE_IRQ 206#ifdef CONFIG_SPARSE_IRQ
207static struct irq_cfg *irq_cfg(unsigned int irq) 207static struct irq_cfg *irq_cfg(unsigned int irq)
208{ 208{
209 return get_irq_chip_data(irq); 209 return irq_get_chip_data(irq);
210} 210}
211 211
212static struct irq_cfg *alloc_irq_cfg(unsigned int irq, int node) 212static struct irq_cfg *alloc_irq_cfg(unsigned int irq, int node)
@@ -232,7 +232,7 @@ static void free_irq_cfg(unsigned int at, struct irq_cfg *cfg)
232{ 232{
233 if (!cfg) 233 if (!cfg)
234 return; 234 return;
235 set_irq_chip_data(at, NULL); 235 irq_set_chip_data(at, NULL);
236 free_cpumask_var(cfg->domain); 236 free_cpumask_var(cfg->domain);
237 free_cpumask_var(cfg->old_domain); 237 free_cpumask_var(cfg->old_domain);
238 kfree(cfg); 238 kfree(cfg);
@@ -262,14 +262,14 @@ static struct irq_cfg *alloc_irq_and_cfg_at(unsigned int at, int node)
262 if (res < 0) { 262 if (res < 0) {
263 if (res != -EEXIST) 263 if (res != -EEXIST)
264 return NULL; 264 return NULL;
265 cfg = get_irq_chip_data(at); 265 cfg = irq_get_chip_data(at);
266 if (cfg) 266 if (cfg)
267 return cfg; 267 return cfg;
268 } 268 }
269 269
270 cfg = alloc_irq_cfg(at, node); 270 cfg = alloc_irq_cfg(at, node);
271 if (cfg) 271 if (cfg)
272 set_irq_chip_data(at, cfg); 272 irq_set_chip_data(at, cfg);
273 else 273 else
274 irq_free_desc(at); 274 irq_free_desc(at);
275 return cfg; 275 return cfg;
@@ -1185,7 +1185,7 @@ void __setup_vector_irq(int cpu)
1185 raw_spin_lock(&vector_lock); 1185 raw_spin_lock(&vector_lock);
1186 /* Mark the inuse vectors */ 1186 /* Mark the inuse vectors */
1187 for_each_active_irq(irq) { 1187 for_each_active_irq(irq) {
1188 cfg = get_irq_chip_data(irq); 1188 cfg = irq_get_chip_data(irq);
1189 if (!cfg) 1189 if (!cfg)
1190 continue; 1190 continue;
1191 /* 1191 /*
@@ -1249,25 +1249,24 @@ static void ioapic_register_intr(unsigned int irq, unsigned long trigger)
1249 else 1249 else
1250 irq_clear_status_flags(irq, IRQ_LEVEL); 1250 irq_clear_status_flags(irq, IRQ_LEVEL);
1251 1251
1252 if (irq_remapped(get_irq_chip_data(irq))) { 1252 if (irq_remapped(irq_get_chip_data(irq))) {
1253 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT); 1253 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT);
1254 if (trigger) 1254 if (trigger)
1255 set_irq_chip_and_handler_name(irq, &ir_ioapic_chip, 1255 irq_set_chip_and_handler_name(irq, &ir_ioapic_chip,
1256 handle_fasteoi_irq, 1256 handle_fasteoi_irq,
1257 "fasteoi"); 1257 "fasteoi");
1258 else 1258 else
1259 set_irq_chip_and_handler_name(irq, &ir_ioapic_chip, 1259 irq_set_chip_and_handler_name(irq, &ir_ioapic_chip,
1260 handle_edge_irq, "edge"); 1260 handle_edge_irq, "edge");
1261 return; 1261 return;
1262 } 1262 }
1263 1263
1264 if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || 1264 if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) ||
1265 trigger == IOAPIC_LEVEL) 1265 trigger == IOAPIC_LEVEL)
1266 set_irq_chip_and_handler_name(irq, &ioapic_chip, 1266 irq_set_chip_and_handler_name(irq, &ioapic_chip,
1267 handle_fasteoi_irq, 1267 handle_fasteoi_irq, "fasteoi");
1268 "fasteoi");
1269 else 1268 else
1270 set_irq_chip_and_handler_name(irq, &ioapic_chip, 1269 irq_set_chip_and_handler_name(irq, &ioapic_chip,
1271 handle_edge_irq, "edge"); 1270 handle_edge_irq, "edge");
1272} 1271}
1273 1272
@@ -1491,7 +1490,8 @@ static void __init setup_timer_IRQ0_pin(unsigned int apic_id, unsigned int pin,
1491 * The timer IRQ doesn't have to know that behind the 1490 * The timer IRQ doesn't have to know that behind the
1492 * scene we may have a 8259A-master in AEOI mode ... 1491 * scene we may have a 8259A-master in AEOI mode ...
1493 */ 1492 */
1494 set_irq_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq, "edge"); 1493 irq_set_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq,
1494 "edge");
1495 1495
1496 /* 1496 /*
1497 * Add it to the IO-APIC irq-routing table: 1497 * Add it to the IO-APIC irq-routing table:
@@ -1598,7 +1598,7 @@ __apicdebuginit(void) print_IO_APIC(void)
1598 for_each_active_irq(irq) { 1598 for_each_active_irq(irq) {
1599 struct irq_pin_list *entry; 1599 struct irq_pin_list *entry;
1600 1600
1601 cfg = get_irq_chip_data(irq); 1601 cfg = irq_get_chip_data(irq);
1602 if (!cfg) 1602 if (!cfg)
1603 continue; 1603 continue;
1604 entry = cfg->irq_2_pin; 1604 entry = cfg->irq_2_pin;
@@ -2364,7 +2364,7 @@ static void irq_complete_move(struct irq_cfg *cfg)
2364 2364
2365void irq_force_complete_move(int irq) 2365void irq_force_complete_move(int irq)
2366{ 2366{
2367 struct irq_cfg *cfg = get_irq_chip_data(irq); 2367 struct irq_cfg *cfg = irq_get_chip_data(irq);
2368 2368
2369 if (!cfg) 2369 if (!cfg)
2370 return; 2370 return;
@@ -2587,7 +2587,7 @@ static inline void init_IO_APIC_traps(void)
2587 * 0x80, because int 0x80 is hm, kind of importantish. ;) 2587 * 0x80, because int 0x80 is hm, kind of importantish. ;)
2588 */ 2588 */
2589 for_each_active_irq(irq) { 2589 for_each_active_irq(irq) {
2590 cfg = get_irq_chip_data(irq); 2590 cfg = irq_get_chip_data(irq);
2591 if (IO_APIC_IRQ(irq) && cfg && !cfg->vector) { 2591 if (IO_APIC_IRQ(irq) && cfg && !cfg->vector) {
2592 /* 2592 /*
2593 * Hmm.. We don't have an entry for this, 2593 * Hmm.. We don't have an entry for this,
@@ -2598,7 +2598,7 @@ static inline void init_IO_APIC_traps(void)
2598 legacy_pic->make_irq(irq); 2598 legacy_pic->make_irq(irq);
2599 else 2599 else
2600 /* Strange. Oh, well.. */ 2600 /* Strange. Oh, well.. */
2601 set_irq_chip(irq, &no_irq_chip); 2601 irq_set_chip(irq, &no_irq_chip);
2602 } 2602 }
2603 } 2603 }
2604} 2604}
@@ -2638,7 +2638,7 @@ static struct irq_chip lapic_chip __read_mostly = {
2638static void lapic_register_intr(int irq) 2638static void lapic_register_intr(int irq)
2639{ 2639{
2640 irq_clear_status_flags(irq, IRQ_LEVEL); 2640 irq_clear_status_flags(irq, IRQ_LEVEL);
2641 set_irq_chip_and_handler_name(irq, &lapic_chip, handle_edge_irq, 2641 irq_set_chip_and_handler_name(irq, &lapic_chip, handle_edge_irq,
2642 "edge"); 2642 "edge");
2643} 2643}
2644 2644
@@ -2722,7 +2722,7 @@ int timer_through_8259 __initdata;
2722 */ 2722 */
2723static inline void __init check_timer(void) 2723static inline void __init check_timer(void)
2724{ 2724{
2725 struct irq_cfg *cfg = get_irq_chip_data(0); 2725 struct irq_cfg *cfg = irq_get_chip_data(0);
2726 int node = cpu_to_node(0); 2726 int node = cpu_to_node(0);
2727 int apic1, pin1, apic2, pin2; 2727 int apic1, pin1, apic2, pin2;
2728 unsigned long flags; 2728 unsigned long flags;
@@ -3033,7 +3033,7 @@ unsigned int create_irq_nr(unsigned int from, int node)
3033 raw_spin_unlock_irqrestore(&vector_lock, flags); 3033 raw_spin_unlock_irqrestore(&vector_lock, flags);
3034 3034
3035 if (ret) { 3035 if (ret) {
3036 set_irq_chip_data(irq, cfg); 3036 irq_set_chip_data(irq, cfg);
3037 irq_clear_status_flags(irq, IRQ_NOREQUEST); 3037 irq_clear_status_flags(irq, IRQ_NOREQUEST);
3038 } else { 3038 } else {
3039 free_irq_at(irq, cfg); 3039 free_irq_at(irq, cfg);
@@ -3058,7 +3058,7 @@ int create_irq(void)
3058 3058
3059void destroy_irq(unsigned int irq) 3059void destroy_irq(unsigned int irq)
3060{ 3060{
3061 struct irq_cfg *cfg = get_irq_chip_data(irq); 3061 struct irq_cfg *cfg = irq_get_chip_data(irq);
3062 unsigned long flags; 3062 unsigned long flags;
3063 3063
3064 irq_set_status_flags(irq, IRQ_NOREQUEST|IRQ_NOPROBE); 3064 irq_set_status_flags(irq, IRQ_NOREQUEST|IRQ_NOPROBE);
@@ -3092,7 +3092,7 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq,
3092 3092
3093 dest = apic->cpu_mask_to_apicid_and(cfg->domain, apic->target_cpus()); 3093 dest = apic->cpu_mask_to_apicid_and(cfg->domain, apic->target_cpus());
3094 3094
3095 if (irq_remapped(get_irq_chip_data(irq))) { 3095 if (irq_remapped(irq_get_chip_data(irq))) {
3096 struct irte irte; 3096 struct irte irte;
3097 int ir_index; 3097 int ir_index;
3098 u16 sub_handle; 3098 u16 sub_handle;
@@ -3271,14 +3271,16 @@ static int setup_msi_irq(struct pci_dev *dev, struct msi_desc *msidesc, int irq)
3271 if (ret < 0) 3271 if (ret < 0)
3272 return ret; 3272 return ret;
3273 3273
3274 set_irq_msi(irq, msidesc); 3274 irq_set_msi_desc(irq, msidesc);
3275 write_msi_msg(irq, &msg); 3275 write_msi_msg(irq, &msg);
3276 3276
3277 if (irq_remapped(get_irq_chip_data(irq))) { 3277 if (irq_remapped(irq_get_chip_data(irq))) {
3278 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT); 3278 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT);
3279 set_irq_chip_and_handler_name(irq, &msi_ir_chip, handle_edge_irq, "edge"); 3279 irq_set_chip_and_handler_name(irq, &msi_ir_chip,
3280 handle_edge_irq, "edge");
3280 } else 3281 } else
3281 set_irq_chip_and_handler_name(irq, &msi_chip, handle_edge_irq, "edge"); 3282 irq_set_chip_and_handler_name(irq, &msi_chip,
3283 handle_edge_irq, "edge");
3282 3284
3283 dev_printk(KERN_DEBUG, &dev->dev, "irq %d for MSI/MSI-X\n", irq); 3285 dev_printk(KERN_DEBUG, &dev->dev, "irq %d for MSI/MSI-X\n", irq);
3284 3286
@@ -3396,8 +3398,8 @@ int arch_setup_dmar_msi(unsigned int irq)
3396 if (ret < 0) 3398 if (ret < 0)
3397 return ret; 3399 return ret;
3398 dmar_msi_write(irq, &msg); 3400 dmar_msi_write(irq, &msg);
3399 set_irq_chip_and_handler_name(irq, &dmar_msi_type, handle_edge_irq, 3401 irq_set_chip_and_handler_name(irq, &dmar_msi_type, handle_edge_irq,
3400 "edge"); 3402 "edge");
3401 return 0; 3403 return 0;
3402} 3404}
3403#endif 3405#endif
@@ -3474,13 +3476,13 @@ int arch_setup_hpet_msi(unsigned int irq, unsigned int id)
3474 if (ret < 0) 3476 if (ret < 0)
3475 return ret; 3477 return ret;
3476 3478
3477 hpet_msi_write(get_irq_data(irq), &msg); 3479 hpet_msi_write(irq_get_handler_data(irq), &msg);
3478 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT); 3480 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT);
3479 if (irq_remapped(get_irq_chip_data(irq))) 3481 if (irq_remapped(irq_get_chip_data(irq)))
3480 set_irq_chip_and_handler_name(irq, &ir_hpet_msi_type, 3482 irq_set_chip_and_handler_name(irq, &ir_hpet_msi_type,
3481 handle_edge_irq, "edge"); 3483 handle_edge_irq, "edge");
3482 else 3484 else
3483 set_irq_chip_and_handler_name(irq, &hpet_msi_type, 3485 irq_set_chip_and_handler_name(irq, &hpet_msi_type,
3484 handle_edge_irq, "edge"); 3486 handle_edge_irq, "edge");
3485 3487
3486 return 0; 3488 return 0;
@@ -3569,7 +3571,7 @@ int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev)
3569 3571
3570 write_ht_irq_msg(irq, &msg); 3572 write_ht_irq_msg(irq, &msg);
3571 3573
3572 set_irq_chip_and_handler_name(irq, &ht_irq_chip, 3574 irq_set_chip_and_handler_name(irq, &ht_irq_chip,
3573 handle_edge_irq, "edge"); 3575 handle_edge_irq, "edge");
3574 3576
3575 dev_printk(KERN_DEBUG, &dev->dev, "irq %d for HT\n", irq); 3577 dev_printk(KERN_DEBUG, &dev->dev, "irq %d for HT\n", irq);
@@ -4054,5 +4056,6 @@ void __init pre_init_apic_IRQ0(void)
4054 setup_local_APIC(); 4056 setup_local_APIC();
4055 4057
4056 io_apic_setup_irq_pin(0, 0, &attr); 4058 io_apic_setup_irq_pin(0, 0, &attr);
4057 set_irq_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq, "edge"); 4059 irq_set_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq,
4060 "edge");
4058} 4061}
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 4ff5968f12d2..bfe8f729e086 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -503,7 +503,7 @@ static int hpet_assign_irq(struct hpet_dev *dev)
503 if (!irq) 503 if (!irq)
504 return -EINVAL; 504 return -EINVAL;
505 505
506 set_irq_data(irq, dev); 506 irq_set_handler_data(irq, dev);
507 507
508 if (hpet_setup_msi_irq(irq)) 508 if (hpet_setup_msi_irq(irq))
509 return -EINVAL; 509 return -EINVAL;
diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
index 20757cb2efa3..d9ca749c123b 100644
--- a/arch/x86/kernel/i8259.c
+++ b/arch/x86/kernel/i8259.c
@@ -112,7 +112,7 @@ static void make_8259A_irq(unsigned int irq)
112{ 112{
113 disable_irq_nosync(irq); 113 disable_irq_nosync(irq);
114 io_apic_irqs &= ~(1<<irq); 114 io_apic_irqs &= ~(1<<irq);
115 set_irq_chip_and_handler_name(irq, &i8259A_chip, handle_level_irq, 115 irq_set_chip_and_handler_name(irq, &i8259A_chip, handle_level_irq,
116 i8259A_chip.name); 116 i8259A_chip.name);
117 enable_irq(irq); 117 enable_irq(irq);
118} 118}
diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c
index c752e973958d..3dd751ce6cc2 100644
--- a/arch/x86/kernel/irqinit.c
+++ b/arch/x86/kernel/irqinit.c
@@ -110,7 +110,7 @@ void __init init_ISA_irqs(void)
110 legacy_pic->init(0); 110 legacy_pic->init(0);
111 111
112 for (i = 0; i < legacy_pic->nr_legacy_irqs; i++) 112 for (i = 0; i < legacy_pic->nr_legacy_irqs; i++)
113 set_irq_chip_and_handler_name(i, chip, handle_level_irq, name); 113 irq_set_chip_and_handler_name(i, chip, handle_level_irq, name);
114} 114}
115 115
116void __init init_IRQ(void) 116void __init init_IRQ(void)
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c
index eba687f0cc0c..b9ec1c74943c 100644
--- a/arch/x86/lguest/boot.c
+++ b/arch/x86/lguest/boot.c
@@ -847,7 +847,7 @@ static void __init lguest_init_IRQ(void)
847void lguest_setup_irq(unsigned int irq) 847void lguest_setup_irq(unsigned int irq)
848{ 848{
849 irq_alloc_desc_at(irq, 0); 849 irq_alloc_desc_at(irq, 0);
850 set_irq_chip_and_handler_name(irq, &lguest_irq_controller, 850 irq_set_chip_and_handler_name(irq, &lguest_irq_controller,
851 handle_level_irq, "level"); 851 handle_level_irq, "level");
852} 852}
853 853
@@ -995,7 +995,7 @@ static void lguest_time_irq(unsigned int irq, struct irq_desc *desc)
995static void lguest_time_init(void) 995static void lguest_time_init(void)
996{ 996{
997 /* Set up the timer interrupt (0) to go to our simple timer routine */ 997 /* Set up the timer interrupt (0) to go to our simple timer routine */
998 set_irq_handler(0, lguest_time_irq); 998 irq_set_handler(0, lguest_time_irq);
999 999
1000 clocksource_register(&lguest_clock); 1000 clocksource_register(&lguest_clock);
1001 1001
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index 25cd4a07d09f..2bdcc36e3166 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -104,7 +104,7 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
104 "msi-x" : "msi", &irq, &pirq, XEN_ALLOC_IRQ); 104 "msi-x" : "msi", &irq, &pirq, XEN_ALLOC_IRQ);
105 if (irq < 0) 105 if (irq < 0)
106 goto error; 106 goto error;
107 ret = set_irq_msi(irq, msidesc); 107 ret = irq_set_msi_desc(irq, msidesc);
108 if (ret < 0) 108 if (ret < 0)
109 goto error_while; 109 goto error_while;
110 printk(KERN_DEBUG "xen: msi already setup: msi --> irq=%d" 110 printk(KERN_DEBUG "xen: msi already setup: msi --> irq=%d"
@@ -117,7 +117,7 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
117 goto error; 117 goto error;
118 printk(KERN_DEBUG "xen: msi --> irq=%d, pirq=%d\n", irq, pirq); 118 printk(KERN_DEBUG "xen: msi --> irq=%d, pirq=%d\n", irq, pirq);
119 xen_msi_compose_msg(dev, pirq, &msg); 119 xen_msi_compose_msg(dev, pirq, &msg);
120 ret = set_irq_msi(irq, msidesc); 120 ret = irq_set_msi_desc(irq, msidesc);
121 if (ret < 0) 121 if (ret < 0)
122 goto error_while; 122 goto error_while;
123 write_msi_msg(irq, &msg); 123 write_msi_msg(irq, &msg);
@@ -165,7 +165,7 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
165 goto free; 165 goto free;
166 } 166 }
167 167
168 ret = set_irq_msi(irq, msidesc); 168 ret = irq_set_msi_desc(irq, msidesc);
169 if (ret) 169 if (ret)
170 goto error_while; 170 goto error_while;
171 i++; 171 i++;
@@ -210,7 +210,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
210 if (irq < 0) 210 if (irq < 0)
211 return -1; 211 return -1;
212 212
213 ret = set_irq_msi(irq, msidesc); 213 ret = irq_set_msi_desc(irq, msidesc);
214 if (ret) 214 if (ret)
215 goto error; 215 goto error;
216 } 216 }
diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c
index 7b24460917d5..374a05d8ad22 100644
--- a/arch/x86/platform/uv/uv_irq.c
+++ b/arch/x86/platform/uv/uv_irq.c
@@ -131,7 +131,7 @@ arch_enable_uv_irq(char *irq_name, unsigned int irq, int cpu, int mmr_blade,
131 unsigned long mmr_offset, int limit) 131 unsigned long mmr_offset, int limit)
132{ 132{
133 const struct cpumask *eligible_cpu = cpumask_of(cpu); 133 const struct cpumask *eligible_cpu = cpumask_of(cpu);
134 struct irq_cfg *cfg = get_irq_chip_data(irq); 134 struct irq_cfg *cfg = irq_get_chip_data(irq);
135 unsigned long mmr_value; 135 unsigned long mmr_value;
136 struct uv_IO_APIC_route_entry *entry; 136 struct uv_IO_APIC_route_entry *entry;
137 int mmr_pnode, err; 137 int mmr_pnode, err;
@@ -148,7 +148,7 @@ arch_enable_uv_irq(char *irq_name, unsigned int irq, int cpu, int mmr_blade,
148 else 148 else
149 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT); 149 irq_set_status_flags(irq, IRQ_MOVE_PCNTXT);
150 150
151 set_irq_chip_and_handler_name(irq, &uv_irq_chip, handle_percpu_irq, 151 irq_set_chip_and_handler_name(irq, &uv_irq_chip, handle_percpu_irq,
152 irq_name); 152 irq_name);
153 153
154 mmr_value = 0; 154 mmr_value = 0;
diff --git a/arch/x86/platform/visws/visws_quirks.c b/arch/x86/platform/visws/visws_quirks.c
index 632037671746..dcc7aea0ff64 100644
--- a/arch/x86/platform/visws/visws_quirks.c
+++ b/arch/x86/platform/visws/visws_quirks.c
@@ -606,7 +606,7 @@ static void __init visws_pre_intr_init(void)
606 chip = &cobalt_irq_type; 606 chip = &cobalt_irq_type;
607 607
608 if (chip) 608 if (chip)
609 set_irq_chip(i, chip); 609 irq_set_chip(i, chip);
610 } 610 }
611 611
612 setup_irq(CO_IRQ_8259, &master_action); 612 setup_irq(CO_IRQ_8259, &master_action);