Skip to content

Commit 69ab391

Browse files
KAGA-KOKOLinus Torvalds
authored andcommitted
[PATCH] irq-flags: drivers/block Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 3cca53b commit 69ab391

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/block/DAC960.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3014,7 +3014,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device,
30143014
Acquire shared access to the IRQ Channel.
30153015
*/
30163016
IRQ_Channel = PCI_Device->irq;
3017-
if (request_irq(IRQ_Channel, InterruptHandler, SA_SHIRQ,
3017+
if (request_irq(IRQ_Channel, InterruptHandler, IRQF_SHARED,
30183018
Controller->FullModelName, Controller) < 0)
30193019
{
30203020
DAC960_Error("Unable to acquire IRQ Channel %d for Controller at\n",

‎drivers/block/cciss.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3159,7 +3159,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
31593159
/* make sure the board interrupts are off */
31603160
hba[i]->access.set_intr_mask(hba[i], CCISS_INTR_OFF);
31613161
if (request_irq(hba[i]->intr[SIMPLE_MODE_INT], do_cciss_intr,
3162-
SA_INTERRUPT | SA_SHIRQ, hba[i]->devname, hba[i])) {
3162+
IRQF_DISABLED | IRQF_SHARED, hba[i]->devname, hba[i])) {
31633163
printk(KERN_ERR "cciss: Unable to get irq %d for %s\n",
31643164
hba[i]->intr[SIMPLE_MODE_INT], hba[i]->devname);
31653165
goto clean2;

‎drivers/block/cpqarray.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev)
408408
}
409409
hba[i]->access.set_intr_mask(hba[i], 0);
410410
if (request_irq(hba[i]->intr, do_ida_intr,
411-
SA_INTERRUPT|SA_SHIRQ, hba[i]->devname, hba[i]))
411+
IRQF_DISABLED|IRQF_SHARED, hba[i]->devname, hba[i]))
412412
{
413413
printk(KERN_ERR "cpqarray: Unable to get irq %d for %s\n",
414414
hba[i]->intr, hba[i]->devname);

‎drivers/block/ps2esdi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ static int __init ps2esdi_geninit(void)
340340
/* try to grab IRQ, and try to grab a slow IRQ if it fails, so we can
341341
share with the SCSI driver */
342342
if (request_irq(PS2ESDI_IRQ, ps2esdi_interrupt_handler,
343-
SA_INTERRUPT | SA_SHIRQ, "PS/2 ESDI", &ps2esdi_gendisk)
343+
IRQF_DISABLED | IRQF_SHARED, "PS/2 ESDI", &ps2esdi_gendisk)
344344
&& request_irq(PS2ESDI_IRQ, ps2esdi_interrupt_handler,
345-
SA_SHIRQ, "PS/2 ESDI", &ps2esdi_gendisk)
345+
IRQF_SHARED, "PS/2 ESDI", &ps2esdi_gendisk)
346346
) {
347347
printk("%s: Unable to get IRQ %d\n", DEVICE_NAME, PS2ESDI_IRQ);
348348
error = -EBUSY;

‎drivers/block/sx8.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
16761676

16771677
pci_set_master(pdev);
16781678

1679-
rc = request_irq(pdev->irq, carm_interrupt, SA_SHIRQ, DRV_NAME, host);
1679+
rc = request_irq(pdev->irq, carm_interrupt, IRQF_SHARED, DRV_NAME, host);
16801680
if (rc) {
16811681
printk(KERN_ERR DRV_NAME "(%s): irq alloc failure\n",
16821682
pci_name(pdev));

‎drivers/block/umem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i
10401040
card->win_size = data;
10411041

10421042

1043-
if (request_irq(dev->irq, mm_interrupt, SA_SHIRQ, "pci-umem", card)) {
1043+
if (request_irq(dev->irq, mm_interrupt, IRQF_SHARED, "pci-umem", card)) {
10441044
printk(KERN_ERR "MM%d: Unable to allocate IRQ\n", card->card_number);
10451045
ret = -ENODEV;
10461046

0 commit comments

Comments
 (0)