Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] remove deprecated IRQF_DISABLED from SCSI

It's a NOOP since 2.6.35 and it will be removed one day.

[jejb: remove from missed arm scsi drivers]
Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

Michael Opdenacker and committed by
James Bottomley
4909cc2b aa803370

+27 -31
+1 -1
drivers/scsi/NCR5380.c
··· 584 584 NCR5380_setup(instance); 585 585 586 586 for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1) 587 - if ((mask & possible) && (request_irq(i, &probe_intr, IRQF_DISABLED, "NCR-probe", NULL) == 0)) 587 + if ((mask & possible) && (request_irq(i, &probe_intr, 0, "NCR-probe", NULL) == 0)) 588 588 trying_irqs |= mask; 589 589 590 590 timeout = jiffies + (250 * HZ / 1000);
+1 -1
drivers/scsi/aacraid/rx.c
··· 647 647 dev->sync_mode = 0; /* sync. mode not supported */ 648 648 dev->msi = aac_msi && !pci_enable_msi(dev->pdev); 649 649 if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr, 650 - IRQF_SHARED|IRQF_DISABLED, "aacraid", dev) < 0) { 650 + IRQF_SHARED, "aacraid", dev) < 0) { 651 651 if (dev->msi) 652 652 pci_disable_msi(dev->pdev); 653 653 printk(KERN_ERR "%s%d: Interrupt unavailable.\n",
+1 -2
drivers/scsi/aacraid/sa.c
··· 387 387 goto error_irq; 388 388 dev->sync_mode = 0; /* sync. mode not supported */ 389 389 if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr, 390 - IRQF_SHARED|IRQF_DISABLED, 391 - "aacraid", (void *)dev ) < 0) { 390 + IRQF_SHARED, "aacraid", (void *)dev) < 0) { 392 391 printk(KERN_WARNING "%s%d: Interrupt unavailable.\n", 393 392 name, instance); 394 393 goto error_iounmap;
+2 -2
drivers/scsi/aacraid/src.c
··· 647 647 dev->msi = aac_msi && !pci_enable_msi(dev->pdev); 648 648 649 649 if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr, 650 - IRQF_SHARED|IRQF_DISABLED, "aacraid", dev) < 0) { 650 + IRQF_SHARED, "aacraid", dev) < 0) { 651 651 652 652 if (dev->msi) 653 653 pci_disable_msi(dev->pdev); ··· 804 804 goto error_iounmap; 805 805 dev->msi = aac_msi && !pci_enable_msi(dev->pdev); 806 806 if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr, 807 - IRQF_SHARED|IRQF_DISABLED, "aacraid", dev) < 0) { 807 + IRQF_SHARED, "aacraid", dev) < 0) { 808 808 if (dev->msi) 809 809 pci_disable_msi(dev->pdev); 810 810 printk(KERN_ERR "%s%d: Interrupt unavailable.\n",
+2 -2
drivers/scsi/aha152x.c
··· 857 857 SETPORT(SIMODE0, 0); 858 858 SETPORT(SIMODE1, 0); 859 859 860 - if( request_irq(shpnt->irq, swintr, IRQF_DISABLED|IRQF_SHARED, "aha152x", shpnt) ) { 860 + if (request_irq(shpnt->irq, swintr, IRQF_SHARED, "aha152x", shpnt)) { 861 861 printk(KERN_ERR "aha152x%d: irq %d busy.\n", shpnt->host_no, shpnt->irq); 862 862 goto out_host_put; 863 863 } ··· 891 891 SETPORT(SSTAT0, 0x7f); 892 892 SETPORT(SSTAT1, 0xef); 893 893 894 - if ( request_irq(shpnt->irq, intr, IRQF_DISABLED|IRQF_SHARED, "aha152x", shpnt) ) { 894 + if (request_irq(shpnt->irq, intr, IRQF_SHARED, "aha152x", shpnt)) { 895 895 printk(KERN_ERR "aha152x%d: failed to reassign irq %d.\n", shpnt->host_no, shpnt->irq); 896 896 goto out_host_put; 897 897 }
-1
drivers/scsi/aic7xxx/aicasm/aicasm_insformat.h
··· 209 209 #define AIC_OP_JC16 0x9105 210 210 #define AIC_OP_JNC16 0x9205 211 211 #define AIC_OP_CALL16 0x9305 212 - #define AIC_OP_CALL16 0x9305 213 212 214 213 /* Page extension is low three bits of second opcode byte. */ 215 214 #define AIC_OP_JMPF 0xA005
+1 -1
drivers/scsi/arm/acornscsi.c
··· 2971 2971 ec->irqaddr = ashost->fast + INT_REG; 2972 2972 ec->irqmask = 0x0a; 2973 2973 2974 - ret = request_irq(host->irq, acornscsi_intr, IRQF_DISABLED, "acornscsi", ashost); 2974 + ret = request_irq(host->irq, acornscsi_intr, 0, "acornscsi", ashost); 2975 2975 if (ret) { 2976 2976 printk(KERN_CRIT "scsi%d: IRQ%d not free: %d\n", 2977 2977 host->host_no, ashost->scsi.irq, ret);
+1 -1
drivers/scsi/arm/cumana_1.c
··· 262 262 goto out_unmap; 263 263 } 264 264 265 - ret = request_irq(host->irq, cumanascsi_intr, IRQF_DISABLED, 265 + ret = request_irq(host->irq, cumanascsi_intr, 0, 266 266 "CumanaSCSI-1", host); 267 267 if (ret) { 268 268 printk("scsi%d: IRQ%d not free: %d\n",
+1 -1
drivers/scsi/arm/cumana_2.c
··· 431 431 goto out_free; 432 432 433 433 ret = request_irq(ec->irq, cumanascsi_2_intr, 434 - IRQF_DISABLED, "cumanascsi2", info); 434 + 0, "cumanascsi2", info); 435 435 if (ret) { 436 436 printk("scsi%d: IRQ%d not free: %d\n", 437 437 host->host_no, ec->irq, ret);
+1 -1
drivers/scsi/arm/powertec.c
··· 358 358 goto out_free; 359 359 360 360 ret = request_irq(ec->irq, powertecscsi_intr, 361 - IRQF_DISABLED, "powertec", info); 361 + 0, "powertec", info); 362 362 if (ret) { 363 363 printk("scsi%d: IRQ%d not free: %d\n", 364 364 host->host_no, ec->irq, ret);
+1 -1
drivers/scsi/dtc.c
··· 277 277 /* With interrupts enabled, it will sometimes hang when doing heavy 278 278 * reads. So better not enable them until I finger it out. */ 279 279 if (instance->irq != SCSI_IRQ_NONE) 280 - if (request_irq(instance->irq, dtc_intr, IRQF_DISABLED, 280 + if (request_irq(instance->irq, dtc_intr, 0, 281 281 "dtc", instance)) { 282 282 printk(KERN_ERR "scsi%d : IRQ%d not free, interrupts disabled\n", instance->host_no, instance->irq); 283 283 instance->irq = SCSI_IRQ_NONE;
+1 -1
drivers/scsi/eata.c
··· 1221 1221 1222 1222 /* Board detected, allocate its IRQ */ 1223 1223 if (request_irq(irq, do_interrupt_handler, 1224 - IRQF_DISABLED | ((subversion == ESA) ? IRQF_SHARED : 0), 1224 + (subversion == ESA) ? IRQF_SHARED : 0, 1225 1225 driver_name, (void *)&sha[j])) { 1226 1226 printk("%s: unable to allocate IRQ %u, detaching.\n", name, 1227 1227 irq);
+2 -2
drivers/scsi/eata_pio.c
··· 687 687 return 0; 688 688 689 689 if (!reg_IRQ[gc->IRQ]) { /* Interrupt already registered ? */ 690 - if (!request_irq(gc->IRQ, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", sh)) { 690 + if (!request_irq(gc->IRQ, do_eata_pio_int_handler, 0, "EATA-PIO", sh)) { 691 691 reg_IRQ[gc->IRQ]++; 692 692 if (!gc->IRQ_TR) 693 693 reg_IRQL[gc->IRQ] = 1; /* IRQ is edge triggered */ ··· 921 921 922 922 for (i = 0; i < MAXIRQ; i++) 923 923 if (reg_IRQ[i]) 924 - request_irq(i, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", NULL); 924 + request_irq(i, do_eata_pio_int_handler, 0, "EATA-PIO", NULL); 925 925 926 926 HBA_ptr = first_HBA; 927 927
+1 -1
drivers/scsi/esas2r/esas2r_init.c
··· 231 231 232 232 static void esas2r_claim_interrupts(struct esas2r_adapter *a) 233 233 { 234 - unsigned long flags = IRQF_DISABLED; 234 + unsigned long flags = 0; 235 235 236 236 if (a->intr_mode == INTR_MODE_LEGACY) 237 237 flags |= IRQF_SHARED;
+1 -1
drivers/scsi/g_NCR5380.c
··· 461 461 462 462 if (instance->irq != SCSI_IRQ_NONE) 463 463 if (request_irq(instance->irq, generic_NCR5380_intr, 464 - IRQF_DISABLED, "NCR5380", instance)) { 464 + 0, "NCR5380", instance)) { 465 465 printk(KERN_WARNING "scsi%d : IRQ%d not free, interrupts disabled\n", instance->host_no, instance->irq); 466 466 instance->irq = SCSI_IRQ_NONE; 467 467 }
+3 -3
drivers/scsi/gdth.c
··· 4711 4711 printk("Configuring GDT-ISA HA at BIOS 0x%05X IRQ %u DRQ %u\n", 4712 4712 isa_bios, ha->irq, ha->drq); 4713 4713 4714 - error = request_irq(ha->irq, gdth_interrupt, IRQF_DISABLED, "gdth", ha); 4714 + error = request_irq(ha->irq, gdth_interrupt, 0, "gdth", ha); 4715 4715 if (error) { 4716 4716 printk("GDT-ISA: Unable to allocate IRQ\n"); 4717 4717 goto out_host_put; ··· 4843 4843 printk("Configuring GDT-EISA HA at Slot %d IRQ %u\n", 4844 4844 eisa_slot >> 12, ha->irq); 4845 4845 4846 - error = request_irq(ha->irq, gdth_interrupt, IRQF_DISABLED, "gdth", ha); 4846 + error = request_irq(ha->irq, gdth_interrupt, 0, "gdth", ha); 4847 4847 if (error) { 4848 4848 printk("GDT-EISA: Unable to allocate IRQ\n"); 4849 4849 goto out_host_put; ··· 4979 4979 ha->irq); 4980 4980 4981 4981 error = request_irq(ha->irq, gdth_interrupt, 4982 - IRQF_DISABLED|IRQF_SHARED, "gdth", ha); 4982 + IRQF_SHARED, "gdth", ha); 4983 4983 if (error) { 4984 4984 printk("GDT-PCI: Unable to allocate IRQ\n"); 4985 4985 goto out_host_put;
+1 -1
drivers/scsi/ibmvscsi/ibmvstgt.c
··· 589 589 } 590 590 591 591 err = request_irq(vport->dma_dev->irq, &ibmvstgt_interrupt, 592 - IRQF_DISABLED, "ibmvstgt", target); 592 + 0, "ibmvstgt", target); 593 593 if (err) 594 594 goto req_irq_failed; 595 595
+1 -1
drivers/scsi/in2000.c
··· 2015 2015 write1_io(0, IO_FIFO_READ); /* start fifo out in read mode */ 2016 2016 write1_io(0, IO_INTR_MASK); /* allow all ints */ 2017 2017 x = int_tab[(switches & (SW_INT0 | SW_INT1)) >> SW_INT_SHIFT]; 2018 - if (request_irq(x, in2000_intr, IRQF_DISABLED, "in2000", instance)) { 2018 + if (request_irq(x, in2000_intr, 0, "in2000", instance)) { 2019 2019 printk("in2000_detect: Unable to allocate IRQ.\n"); 2020 2020 detect_count--; 2021 2021 continue;
+1 -1
drivers/scsi/initio.c
··· 2931 2931 shost->base = host->addr; 2932 2932 shost->sg_tablesize = TOTAL_SG_ENTRY; 2933 2933 2934 - error = request_irq(pdev->irq, i91u_intr, IRQF_DISABLED|IRQF_SHARED, "i91u", shost); 2934 + error = request_irq(pdev->irq, i91u_intr, IRQF_SHARED, "i91u", shost); 2935 2935 if (error < 0) { 2936 2936 printk(KERN_WARNING "initio: Unable to request IRQ %d\n", pdev->irq); 2937 2937 goto out_free_scbs;
+1 -1
drivers/scsi/pas16.c
··· 453 453 instance->irq = NCR5380_probe_irq(instance, PAS16_IRQS); 454 454 455 455 if (instance->irq != SCSI_IRQ_NONE) 456 - if (request_irq(instance->irq, pas16_intr, IRQF_DISABLED, 456 + if (request_irq(instance->irq, pas16_intr, 0, 457 457 "pas16", instance)) { 458 458 printk("scsi%d : IRQ%d not free, interrupts disabled\n", 459 459 instance->host_no, instance->irq);
-2
drivers/scsi/pm8001/pm8001_init.c
··· 716 716 /* SPCv controllers supports 64 msi-x */ 717 717 if (pm8001_ha->chip_id == chip_8001) { 718 718 number_of_intr = 1; 719 - flag |= IRQF_DISABLED; 720 719 } else { 721 720 number_of_intr = PM8001_MAX_MSIX_VEC; 722 721 flag &= ~IRQF_SHARED; 723 - flag |= IRQF_DISABLED; 724 722 } 725 723 726 724 max_entry = sizeof(pm8001_ha->msix_entries) /
+1 -1
drivers/scsi/t128.c
··· 259 259 instance->irq = NCR5380_probe_irq(instance, T128_IRQS); 260 260 261 261 if (instance->irq != SCSI_IRQ_NONE) 262 - if (request_irq(instance->irq, t128_intr, IRQF_DISABLED, "t128", 262 + if (request_irq(instance->irq, t128_intr, 0, "t128", 263 263 instance)) { 264 264 printk("scsi%d : IRQ%d not free, interrupts disabled\n", 265 265 instance->host_no, instance->irq);
+1 -1
drivers/scsi/u14-34f.c
··· 873 873 874 874 /* Board detected, allocate its IRQ */ 875 875 if (request_irq(irq, do_interrupt_handler, 876 - IRQF_DISABLED | ((subversion == ESA) ? IRQF_SHARED : 0), 876 + (subversion == ESA) ? IRQF_SHARED : 0, 877 877 driver_name, (void *) &sha[j])) { 878 878 printk("%s: unable to allocate IRQ %u, detaching.\n", name, irq); 879 879 goto freelock;
+1 -1
drivers/scsi/wd7000.c
··· 1252 1252 return 0; 1253 1253 1254 1254 1255 - if (request_irq(host->irq, wd7000_intr, IRQF_DISABLED, "wd7000", host)) { 1255 + if (request_irq(host->irq, wd7000_intr, 0, "wd7000", host)) { 1256 1256 printk("wd7000_init: can't get IRQ %d.\n", host->irq); 1257 1257 return (0); 1258 1258 }