]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] remove deprecated IRQF_DISABLED from SCSI
authorMichael Opdenacker <michael.opdenacker@free-electrons.com>
Wed, 5 Mar 2014 05:09:41 +0000 (06:09 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 19 Mar 2014 22:04:44 +0000 (15:04 -0700)
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>
24 files changed:
drivers/scsi/NCR5380.c
drivers/scsi/aacraid/rx.c
drivers/scsi/aacraid/sa.c
drivers/scsi/aacraid/src.c
drivers/scsi/aha152x.c
drivers/scsi/aic7xxx/aicasm/aicasm_insformat.h
drivers/scsi/arm/acornscsi.c
drivers/scsi/arm/cumana_1.c
drivers/scsi/arm/cumana_2.c
drivers/scsi/arm/powertec.c
drivers/scsi/dtc.c
drivers/scsi/eata.c
drivers/scsi/eata_pio.c
drivers/scsi/esas2r/esas2r_init.c
drivers/scsi/g_NCR5380.c
drivers/scsi/gdth.c
drivers/scsi/ibmvscsi/ibmvstgt.c
drivers/scsi/in2000.c
drivers/scsi/initio.c
drivers/scsi/pas16.c
drivers/scsi/pm8001/pm8001_init.c
drivers/scsi/t128.c
drivers/scsi/u14-34f.c
drivers/scsi/wd7000.c

index 1e9d6ad9302b735cf2d124c2c41f053ef4d9f12a..bcd2238682271b017341e1be471dc4af36cfd87b 100644 (file)
@@ -584,7 +584,7 @@ static int __init __maybe_unused NCR5380_probe_irq(struct Scsi_Host *instance,
        NCR5380_setup(instance);
 
        for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1)
-               if ((mask & possible) && (request_irq(i, &probe_intr, IRQF_DISABLED, "NCR-probe", NULL) == 0))
+               if ((mask & possible) && (request_irq(i, &probe_intr, 0, "NCR-probe", NULL) == 0))
                        trying_irqs |= mask;
 
        timeout = jiffies + (250 * HZ / 1000);
index bb9917c57760c0d28bb6ee2c4a01c82c98d9aebb..5c6a8703f53594db4934cc04ff07d112b0448cdb 100644 (file)
@@ -647,7 +647,7 @@ int _aac_rx_init(struct aac_dev *dev)
        dev->sync_mode = 0;     /* sync. mode not supported */
        dev->msi = aac_msi && !pci_enable_msi(dev->pdev);
        if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr,
-                       IRQF_SHARED|IRQF_DISABLED, "aacraid", dev) < 0) {
+                       IRQF_SHARED, "aacraid", dev) < 0) {
                if (dev->msi)
                        pci_disable_msi(dev->pdev);
                printk(KERN_ERR "%s%d: Interrupt unavailable.\n",
index 2244f315f33b6190118d5348e3bc58e2213db472..e66477c98240e40f9c6aae11b59cb61da2aa41f3 100644 (file)
@@ -387,8 +387,7 @@ int aac_sa_init(struct aac_dev *dev)
                goto error_irq;
        dev->sync_mode = 0;     /* sync. mode not supported */
        if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr,
-                       IRQF_SHARED|IRQF_DISABLED,
-                       "aacraid", (void *)dev ) < 0) {
+                       IRQF_SHARED, "aacraid", (void *)dev) < 0) {
                printk(KERN_WARNING "%s%d: Interrupt unavailable.\n",
                        name, instance);
                goto error_iounmap;
index 7e17107643d48a2066b1b00dbb954d35c75db0ef..9c65aed262126348fe2c7976c367f87a52ef59eb 100644 (file)
@@ -647,7 +647,7 @@ int aac_src_init(struct aac_dev *dev)
        dev->msi = aac_msi && !pci_enable_msi(dev->pdev);
 
        if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr,
-                       IRQF_SHARED|IRQF_DISABLED, "aacraid", dev) < 0) {
+                       IRQF_SHARED, "aacraid", dev) < 0) {
 
                if (dev->msi)
                        pci_disable_msi(dev->pdev);
@@ -804,7 +804,7 @@ int aac_srcv_init(struct aac_dev *dev)
                goto error_iounmap;
        dev->msi = aac_msi && !pci_enable_msi(dev->pdev);
        if (request_irq(dev->pdev->irq, dev->a_ops.adapter_intr,
-               IRQF_SHARED|IRQF_DISABLED, "aacraid", dev) < 0) {
+               IRQF_SHARED, "aacraid", dev) < 0) {
                if (dev->msi)
                        pci_disable_msi(dev->pdev);
                printk(KERN_ERR "%s%d: Interrupt unavailable.\n",
index 3f7b6fee0a74ace322495bad7bbbc6c420b15c0c..e86eb6a921fcef1fa54593fa8bcff612d44fc127 100644 (file)
@@ -857,7 +857,7 @@ struct Scsi_Host *aha152x_probe_one(struct aha152x_setup *setup)
        SETPORT(SIMODE0, 0);
        SETPORT(SIMODE1, 0);
 
-       if( request_irq(shpnt->irq, swintr, IRQF_DISABLED|IRQF_SHARED, "aha152x", shpnt) ) {
+       if (request_irq(shpnt->irq, swintr, IRQF_SHARED, "aha152x", shpnt)) {
                printk(KERN_ERR "aha152x%d: irq %d busy.\n", shpnt->host_no, shpnt->irq);
                goto out_host_put;
        }
@@ -891,7 +891,7 @@ struct Scsi_Host *aha152x_probe_one(struct aha152x_setup *setup)
        SETPORT(SSTAT0, 0x7f);
        SETPORT(SSTAT1, 0xef);
 
-       if ( request_irq(shpnt->irq, intr, IRQF_DISABLED|IRQF_SHARED, "aha152x", shpnt) ) {
+       if (request_irq(shpnt->irq, intr, IRQF_SHARED, "aha152x", shpnt)) {
                printk(KERN_ERR "aha152x%d: failed to reassign irq %d.\n", shpnt->host_no, shpnt->irq);
                goto out_host_put;
        }
index 9df9e2ce3538e27a711e7ad6ee4fc5aa595ccdf3..8373447bd7d3376010237bc54dce6b122eeec971 100644 (file)
@@ -209,7 +209,6 @@ struct instruction {
 #define AIC_OP_JC16    0x9105
 #define AIC_OP_JNC16   0x9205
 #define AIC_OP_CALL16  0x9305
-#define AIC_OP_CALL16  0x9305
 
 /* Page extension is low three bits of second opcode byte. */
 #define AIC_OP_JMPF    0xA005
index 09ba1869d366d1ba8881087d4e3c8f88d2e91f5b..059ff477a398290091ef35c8215a806799169e67 100644 (file)
@@ -2971,7 +2971,7 @@ static int acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
        ec->irqaddr     = ashost->fast + INT_REG;
        ec->irqmask     = 0x0a;
 
-       ret = request_irq(host->irq, acornscsi_intr, IRQF_DISABLED, "acornscsi", ashost);
+       ret = request_irq(host->irq, acornscsi_intr, 0, "acornscsi", ashost);
        if (ret) {
                printk(KERN_CRIT "scsi%d: IRQ%d not free: %d\n",
                        host->host_no, ashost->scsi.irq, ret);
index b679778376c5f62c6d3a2a83c01beb468fa1a849..f8e0609000521fd734958538369bce29a7c1f913 100644 (file)
@@ -262,7 +262,7 @@ static int cumanascsi1_probe(struct expansion_card *ec,
                goto out_unmap;
        }
 
-       ret = request_irq(host->irq, cumanascsi_intr, IRQF_DISABLED,
+       ret = request_irq(host->irq, cumanascsi_intr, 0,
                          "CumanaSCSI-1", host);
        if (ret) {
                printk("scsi%d: IRQ%d not free: %d\n",
index 58915f29055b8050774ce2610f987092ad8d60a1..abc66f5263ec08988338f23b22d0e432529dd57e 100644 (file)
@@ -431,7 +431,7 @@ static int cumanascsi2_probe(struct expansion_card *ec,
                goto out_free;
 
        ret = request_irq(ec->irq, cumanascsi_2_intr,
-                         IRQF_DISABLED, "cumanascsi2", info);
+                         0, "cumanascsi2", info);
        if (ret) {
                printk("scsi%d: IRQ%d not free: %d\n",
                       host->host_no, ec->irq, ret);
index abc9593615e9a56df352b658aa1a9e0febf46d1f..5e1b73e1b743e3b175252e148d55f37375e5b444 100644 (file)
@@ -358,7 +358,7 @@ static int powertecscsi_probe(struct expansion_card *ec,
                goto out_free;
 
        ret = request_irq(ec->irq, powertecscsi_intr,
-                         IRQF_DISABLED, "powertec", info);
+                         0, "powertec", info);
        if (ret) {
                printk("scsi%d: IRQ%d not free: %d\n",
                       host->host_no, ec->irq, ret);
index d01f01604140a9204b8273eb220fe21d2d0ff2cf..eb29fe7eaf49b2ff84d2219c349bc5ac80a12529 100644 (file)
@@ -277,7 +277,7 @@ found:
                /* With interrupts enabled, it will sometimes hang when doing heavy
                 * reads. So better not enable them until I finger it out. */
                if (instance->irq != SCSI_IRQ_NONE)
-                       if (request_irq(instance->irq, dtc_intr, IRQF_DISABLED,
+                       if (request_irq(instance->irq, dtc_intr, 0,
                                        "dtc", instance)) {
                                printk(KERN_ERR "scsi%d : IRQ%d not free, interrupts disabled\n", instance->host_no, instance->irq);
                                instance->irq = SCSI_IRQ_NONE;
index 94de88955a997a1da1abb8e81a979897d74c5e5d..ebf57364df912a7b9f4a78a9775fc1d2ddacfd7e 100644 (file)
@@ -1221,7 +1221,7 @@ static int port_detect(unsigned long port_base, unsigned int j,
 
        /* Board detected, allocate its IRQ */
        if (request_irq(irq, do_interrupt_handler,
-                       IRQF_DISABLED | ((subversion == ESA) ? IRQF_SHARED : 0),
+                       (subversion == ESA) ? IRQF_SHARED : 0,
                        driver_name, (void *)&sha[j])) {
                printk("%s: unable to allocate IRQ %u, detaching.\n", name,
                       irq);
index 1663173cdb91c58693d0ee3ec04ad7a53face567..8319d2b417b859cc08afb627bfc5c516cfab6f2d 100644 (file)
@@ -687,7 +687,7 @@ static int register_pio_HBA(long base, struct get_conf *gc, struct pci_dev *pdev
                return 0;
 
        if (!reg_IRQ[gc->IRQ]) {        /* Interrupt already registered ? */
-               if (!request_irq(gc->IRQ, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", sh)) {
+               if (!request_irq(gc->IRQ, do_eata_pio_int_handler, 0, "EATA-PIO", sh)) {
                        reg_IRQ[gc->IRQ]++;
                        if (!gc->IRQ_TR)
                                reg_IRQL[gc->IRQ] = 1;  /* IRQ is edge triggered */
@@ -921,7 +921,7 @@ static int eata_pio_detect(struct scsi_host_template *tpnt)
 
        for (i = 0; i < MAXIRQ; i++)
                if (reg_IRQ[i])
-                       request_irq(i, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", NULL);
+                       request_irq(i, do_eata_pio_int_handler, 0, "EATA-PIO", NULL);
 
        HBA_ptr = first_HBA;
 
index b9750e296d7116ab38f91017a82eb98279c3ed1e..6776931e25d45a598c0f5b9883e89e3db7dd5f4a 100644 (file)
@@ -231,7 +231,7 @@ use_legacy_interrupts:
 
 static void esas2r_claim_interrupts(struct esas2r_adapter *a)
 {
-       unsigned long flags = IRQF_DISABLED;
+       unsigned long flags = 0;
 
        if (a->intr_mode == INTR_MODE_LEGACY)
                flags |= IRQF_SHARED;
index 5cec6c60ca22dd9df89f3ebb8f19ed78c781b0a9..7176365e916b7aff6ca310baa9e75044dab9cf11 100644 (file)
@@ -461,7 +461,7 @@ int __init generic_NCR5380_detect(struct scsi_host_template * tpnt)
 
                if (instance->irq != SCSI_IRQ_NONE)
                        if (request_irq(instance->irq, generic_NCR5380_intr,
-                                       IRQF_DISABLED, "NCR5380", instance)) {
+                                       0, "NCR5380", instance)) {
                                printk(KERN_WARNING "scsi%d : IRQ%d not free, interrupts disabled\n", instance->host_no, instance->irq);
                                instance->irq = SCSI_IRQ_NONE;
                        }
index ce5ef0190bad3f99f7459a859ce0ca0a1e947246..0f1ae13ce7c762e802ad16353927f2ad7d73b563 100644 (file)
@@ -4711,7 +4711,7 @@ static int __init gdth_isa_probe_one(u32 isa_bios)
        printk("Configuring GDT-ISA HA at BIOS 0x%05X IRQ %u DRQ %u\n",
                isa_bios, ha->irq, ha->drq);
 
-       error = request_irq(ha->irq, gdth_interrupt, IRQF_DISABLED, "gdth", ha);
+       error = request_irq(ha->irq, gdth_interrupt, 0, "gdth", ha);
        if (error) {
                printk("GDT-ISA: Unable to allocate IRQ\n");
                goto out_host_put;
@@ -4843,7 +4843,7 @@ static int __init gdth_eisa_probe_one(u16 eisa_slot)
        printk("Configuring GDT-EISA HA at Slot %d IRQ %u\n",
                eisa_slot >> 12, ha->irq);
 
-       error = request_irq(ha->irq, gdth_interrupt, IRQF_DISABLED, "gdth", ha);
+       error = request_irq(ha->irq, gdth_interrupt, 0, "gdth", ha);
        if (error) {
                printk("GDT-EISA: Unable to allocate IRQ\n");
                goto out_host_put;
@@ -4979,7 +4979,7 @@ static int gdth_pci_probe_one(gdth_pci_str *pcistr, gdth_ha_str **ha_out)
                ha->irq);
 
        error = request_irq(ha->irq, gdth_interrupt,
-                               IRQF_DISABLED|IRQF_SHARED, "gdth", ha);
+                               IRQF_SHARED, "gdth", ha);
        if (error) {
                printk("GDT-PCI: Unable to allocate IRQ\n");
                goto out_host_put;
index bf9eca84516658b5a6ad00527e665e4b2457672d..56f8a861ed724b57d4e98eae018ea5fb43f4eef9 100644 (file)
@@ -589,7 +589,7 @@ static int crq_queue_create(struct crq_queue *queue, struct srp_target *target)
        }
 
        err = request_irq(vport->dma_dev->irq, &ibmvstgt_interrupt,
-                         IRQF_DISABLED, "ibmvstgt", target);
+                         0, "ibmvstgt", target);
        if (err)
                goto req_irq_failed;
 
index bf028218ac36ec6e658b4359bd44cd1ab101a5ec..b1c4d831137d52603a1c86a04a27d2be47af822e 100644 (file)
@@ -2015,7 +2015,7 @@ static int __init in2000_detect(struct scsi_host_template * tpnt)
                write1_io(0, IO_FIFO_READ);     /* start fifo out in read mode */
                write1_io(0, IO_INTR_MASK);     /* allow all ints */
                x = int_tab[(switches & (SW_INT0 | SW_INT1)) >> SW_INT_SHIFT];
-               if (request_irq(x, in2000_intr, IRQF_DISABLED, "in2000", instance)) {
+               if (request_irq(x, in2000_intr, 0, "in2000", instance)) {
                        printk("in2000_detect: Unable to allocate IRQ.\n");
                        detect_count--;
                        continue;
index 280d5af113d1deb851791ca2f9d254b6d45b149c..e5dae7b54d9a8c9bf093110b7cf39b187e5d8ddb 100644 (file)
@@ -2931,7 +2931,7 @@ static int initio_probe_one(struct pci_dev *pdev,
        shost->base = host->addr;
        shost->sg_tablesize = TOTAL_SG_ENTRY;
 
-       error = request_irq(pdev->irq, i91u_intr, IRQF_DISABLED|IRQF_SHARED, "i91u", shost);
+       error = request_irq(pdev->irq, i91u_intr, IRQF_SHARED, "i91u", shost);
        if (error < 0) {
                printk(KERN_WARNING "initio: Unable to request IRQ %d\n", pdev->irq);
                goto out_free_scbs;
index 62f1a6031765d33755cbf5f9f0987bddc5760a5d..0d78a4d5576c33869ceed04f931a00b34b231323 100644 (file)
@@ -453,7 +453,7 @@ int __init pas16_detect(struct scsi_host_template * tpnt)
            instance->irq = NCR5380_probe_irq(instance, PAS16_IRQS);
 
        if (instance->irq != SCSI_IRQ_NONE) 
-           if (request_irq(instance->irq, pas16_intr, IRQF_DISABLED,
+           if (request_irq(instance->irq, pas16_intr, 0,
                            "pas16", instance)) {
                printk("scsi%d : IRQ%d not free, interrupts disabled\n", 
                    instance->host_no, instance->irq);
index cb89d15b3028c0cc120adc1556b71937d29110b2..c4f31b21feb848f2a4e2ec5c54c3b154d9287b8d 100644 (file)
@@ -716,11 +716,9 @@ static u32 pm8001_setup_msix(struct pm8001_hba_info *pm8001_ha)
        /* SPCv controllers supports 64 msi-x */
        if (pm8001_ha->chip_id == chip_8001) {
                number_of_intr = 1;
-               flag |= IRQF_DISABLED;
        } else {
                number_of_intr = PM8001_MAX_MSIX_VEC;
                flag &= ~IRQF_SHARED;
-               flag |= IRQF_DISABLED;
        }
 
        max_entry = sizeof(pm8001_ha->msix_entries) /
index f1e4b4148c75ced73820cba96a325ba2ffdb5d8d..a4abce9d526e6b553e1e7412ddf8c92e68cf2906 100644 (file)
@@ -259,7 +259,7 @@ found:
            instance->irq = NCR5380_probe_irq(instance, T128_IRQS);
 
        if (instance->irq != SCSI_IRQ_NONE) 
-           if (request_irq(instance->irq, t128_intr, IRQF_DISABLED, "t128",
+           if (request_irq(instance->irq, t128_intr, 0, "t128",
                            instance)) {
                printk("scsi%d : IRQ%d not free, interrupts disabled\n", 
                    instance->host_no, instance->irq);
index 9c216e5635685f109eb9c68c41c56a062b483220..5a03bb3bcfef1ce815cf11ad7224e5862685fd8d 100644 (file)
@@ -873,7 +873,7 @@ static int port_detect \
 
    /* Board detected, allocate its IRQ */
    if (request_irq(irq, do_interrupt_handler,
-             IRQF_DISABLED | ((subversion == ESA) ? IRQF_SHARED : 0),
+             (subversion == ESA) ? IRQF_SHARED : 0,
              driver_name, (void *) &sha[j])) {
       printk("%s: unable to allocate IRQ %u, detaching.\n", name, irq);
       goto freelock;
index f9a6e4b0affe895ed8e388f4afaf3d70df941fca..32674236fec773ec4cbac6dcd057cfc2873c3460 100644 (file)
@@ -1252,7 +1252,7 @@ static int wd7000_init(Adapter * host)
                return 0;
 
 
-       if (request_irq(host->irq, wd7000_intr, IRQF_DISABLED, "wd7000", host)) {
+       if (request_irq(host->irq, wd7000_intr, 0, "wd7000", host)) {
                printk("wd7000_init: can't get IRQ %d.\n", host->irq);
                return (0);
        }