diff --git a/drivers/dahdi/pciradio.c b/drivers/dahdi/pciradio.c index 07b85b3..d287b40 100644 --- a/drivers/dahdi/pciradio.c +++ b/drivers/dahdi/pciradio.c @@ -1784,7 +1784,8 @@ static int __devinit pciradio_init_one(struct pci_dev *pdev, const struct pci_de } - if (request_irq(pdev->irq, pciradio_interrupt, DAHDI_IRQ_SHARED, "pciradio", rad)) { + if (request_irq(pdev->irq, pciradio_interrupt, + IRQF_SHARED, "pciradio", rad)) { printk(KERN_NOTICE "pciradio: Unable to request IRQ %d\n", pdev->irq); if (rad->freeregion) release_region(rad->ioaddr, 0xff); diff --git a/drivers/dahdi/tor2.c b/drivers/dahdi/tor2.c index 5d2f37e..f3d2c6f 100644 --- a/drivers/dahdi/tor2.c +++ b/drivers/dahdi/tor2.c @@ -543,7 +543,8 @@ static int __devinit tor2_probe(struct pci_dev *pdev, const struct pci_device_id for (x = 0; x < 256; x++) writel(0x7f7f7f7f, &tor->mem32[x]); - if (request_irq(tor->irq, tor2_intr, DAHDI_IRQ_SHARED_DISABLED, "tor2", tor)) { + if (request_irq(tor->irq, tor2_intr, + IRQF_SHARED | IRQF_DISABLED, "tor2", tor)) { printk(KERN_ERR "Unable to request tormenta IRQ %d\n", tor->irq); goto err_out_release_all; } diff --git a/drivers/dahdi/voicebus/voicebus.c b/drivers/dahdi/voicebus/voicebus.c index 28b8e32..7ee7763 100644 --- a/drivers/dahdi/voicebus/voicebus.c +++ b/drivers/dahdi/voicebus/voicebus.c @@ -1885,7 +1885,7 @@ __voicebus_init(struct voicebus *vb, const char *board_name, goto cleanup; #if !defined(CONFIG_VOICEBUS_TIMER) - retval = request_irq(vb->pdev->irq, vb_isr, DAHDI_IRQ_SHARED, + retval = request_irq(vb->pdev->irq, vb_isr, IRQF_SHARED, board_name, vb); if (retval) { dev_warn(&vb->pdev->dev, "Failed to request interrupt line.\n"); diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c index 5538660..fb0e491 100644 --- a/drivers/dahdi/wcb4xxp/base.c +++ b/drivers/dahdi/wcb4xxp/base.c @@ -2951,7 +2951,8 @@ static int __devinit b4xx_probe(struct pci_dev *pdev, const struct pci_device_id create_sysfs_files(b4); - if (request_irq(pdev->irq, b4xxp_interrupt, DAHDI_IRQ_SHARED_DISABLED, "b4xxp", b4)) { + if (request_irq(pdev->irq, b4xxp_interrupt, + IRQF_SHARED | IRQF_DISABLED, "b4xxp", b4)) { dev_err(&b4->pdev->dev, "Unable to request IRQ %d\n", pdev->irq); ret = -EIO; diff --git a/drivers/dahdi/wcfxo.c b/drivers/dahdi/wcfxo.c index ad74137..b79d2fe 100644 --- a/drivers/dahdi/wcfxo.c +++ b/drivers/dahdi/wcfxo.c @@ -972,7 +972,7 @@ static int __devinit wcfxo_init_one(struct pci_dev *pdev, const struct pci_devic /* Keep track of which device we are */ pci_set_drvdata(pdev, wc); - if (request_irq(pdev->irq, wcfxo_interrupt, DAHDI_IRQ_SHARED, "wcfxo", wc)) { + if (request_irq(pdev->irq, wcfxo_interrupt, IRQF_SHARED, "wcfxo", wc)) { printk(KERN_NOTICE "wcfxo: Unable to request IRQ %d\n", pdev->irq); if (wc->freeregion) release_region(wc->ioaddr, 0xff); diff --git a/drivers/dahdi/wct1xxp.c b/drivers/dahdi/wct1xxp.c index adc917e..86dd6b8 100644 --- a/drivers/dahdi/wct1xxp.c +++ b/drivers/dahdi/wct1xxp.c @@ -1333,7 +1333,8 @@ static int __devinit t1xxp_init_one(struct pci_dev *pdev, const struct pci_devic /* Keep track of which device we are */ pci_set_drvdata(pdev, wc); - if (request_irq(pdev->irq, t1xxp_interrupt, DAHDI_IRQ_SHARED_DISABLED, "t1xxp", wc)) { + if (request_irq(pdev->irq, t1xxp_interrupt, + IRQF_SHARED | IRQF_DISABLED, "t1xxp", wc)) { printk(KERN_NOTICE "t1xxp: Unable to request IRQ %d\n", pdev->irq); kfree(wc); return -EIO; diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index bb00bcd..6b9072e 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -5334,7 +5334,7 @@ t4_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) #ifdef SUPPORT_GEN1 if (request_irq(pdev->irq, (wc->devtype->flags & FLAG_2NDGEN) ? t4_interrupt_gen2 : t4_interrupt, - DAHDI_IRQ_SHARED, + IRQF_SHARED, (wc->numspans == 8) ? "wct8xxp" : (wc->numspans == 2) ? "wct2xxp" : "wct4xxp", @@ -5348,7 +5348,7 @@ t4_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) } if (request_irq(pdev->irq, t4_interrupt_gen2, - DAHDI_IRQ_SHARED, "t4xxp", wc)) { + IRQF_SHARED, "t4xxp", wc)) { #endif dev_notice(&wc->dev->dev, "Unable to request IRQ %d\n", pdev->irq); diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index d1e1507..02ea625 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -4105,7 +4105,7 @@ wctc4xxp_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) pci_set_master(pdev); pci_set_drvdata(pdev, wc); res = request_irq(pdev->irq, wctc4xxp_interrupt, - DAHDI_IRQ_SHARED, wc->board_name, wc); + IRQF_SHARED, wc->board_name, wc); if (res) { dev_err(&wc->pdev->dev, "Unable to request IRQ %d\n", pdev->irq); diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index f82bc6d..9f43e52 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -2684,7 +2684,8 @@ static int __devinit wctdm_init_one(struct pci_dev *pdev, const struct pci_devic /* Keep track of which device we are */ pci_set_drvdata(pdev, wc); - if (request_irq(pdev->irq, wctdm_interrupt, DAHDI_IRQ_SHARED, "wctdm", wc)) { + if (request_irq(pdev->irq, wctdm_interrupt, + IRQF_SHARED, "wctdm", wc)) { printk(KERN_NOTICE "wctdm: Unable to request IRQ %d\n", pdev->irq); if (wc->freeregion) release_region(wc->ioaddr, 0xff); diff --git a/drivers/dahdi/wcte11xp.c b/drivers/dahdi/wcte11xp.c index eac62e3..8c4ab6e 100644 --- a/drivers/dahdi/wcte11xp.c +++ b/drivers/dahdi/wcte11xp.c @@ -1534,7 +1534,8 @@ static int __devinit t1xxp_init_one(struct pci_dev *pdev, const struct pci_devic /* Keep track of which device we are */ pci_set_drvdata(pdev, wc); - if (request_irq(pdev->irq, t1xxp_interrupt, DAHDI_IRQ_SHARED_DISABLED, "wcte11xp", wc)) { + if (request_irq(pdev->irq, t1xxp_interrupt, + IRQF_SHARED | IRQF_DISABLED, "wcte11xp", wc)) { printk(KERN_NOTICE "wcte11xp: Unable to request IRQ %d\n", pdev->irq); kfree(wc); return -EIO; diff --git a/drivers/dahdi/wcxb.c b/drivers/dahdi/wcxb.c index f45125a..7068fae 100644 --- a/drivers/dahdi/wcxb.c +++ b/drivers/dahdi/wcxb.c @@ -685,7 +685,7 @@ int wcxb_init(struct wcxb *xb, const char *board_name, u32 int_mode) xb->flags.have_msi = (int_mode) ? 0 : (0 == pci_enable_msi(pdev)); if (request_irq(pdev->irq, wcxb_isr, - (xb->flags.have_msi) ? 0 : DAHDI_IRQ_SHARED, + (xb->flags.have_msi) ? 0 : IRQF_SHARED, board_name, xb)) { dev_notice(&xb->pdev->dev, "Unable to request IRQ %d\n", pdev->irq); diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 90d48a3..ce16668 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -76,10 +76,6 @@ #define HAVE_NET_DEVICE_OPS #endif -#define DAHDI_IRQ_SHARED IRQF_SHARED -#define DAHDI_IRQ_DISABLED IRQF_DISABLED -#define DAHDI_IRQ_SHARED_DISABLED IRQF_SHARED | IRQF_DISABLED - #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) # ifdef RHEL_RELEASE_VERSION # if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5, 6)