drivers/net: request_irq - Remove unnecessary leading & from second arg

Not as fancy as coccinelle.  Checkpatch errors ignored.
Compile tested allyesconfig x86, not all files compiled.

grep -rPl --include=*.[ch] "\brequest_irq\s*\([^,\)]+,\s*\&" drivers/net | while read file ; do \
	perl -i -e 'local $/; while (<>) { s@(\brequest_irq\s*\([^,\)]+,\s*)\&@\1@g ; print ; }' $file ;\
done

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Joe Perches 2009-11-18 23:29:17 -08:00 committed by David S. Miller
parent 2939e27599
commit a0607fd3a2
96 changed files with 131 additions and 131 deletions

View file

@ -345,7 +345,7 @@ static int el_open(struct net_device *dev)
if (el_debug > 2) if (el_debug > 2)
pr_debug("%s: Doing el_open()...\n", dev->name); pr_debug("%s: Doing el_open()...\n", dev->name);
retval = request_irq(dev->irq, &el_interrupt, 0, dev->name, dev); retval = request_irq(dev->irq, el_interrupt, 0, dev->name, dev);
if (retval) if (retval)
return retval; return retval;

View file

@ -886,7 +886,7 @@ static int elp_open(struct net_device *dev)
/* /*
* install our interrupt service routine * install our interrupt service routine
*/ */
if ((retval = request_irq(dev->irq, &elp_interrupt, 0, dev->name, dev))) { if ((retval = request_irq(dev->irq, elp_interrupt, 0, dev->name, dev))) {
pr_err("%s: could not allocate IRQ%d\n", dev->name, dev->irq); pr_err("%s: could not allocate IRQ%d\n", dev->name, dev->irq);
return retval; return retval;
} }

View file

@ -399,7 +399,7 @@ static int __init el16_probe1(struct net_device *dev, int ioaddr)
irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
irqval = request_irq(irq, &el16_interrupt, 0, DRV_NAME, dev); irqval = request_irq(irq, el16_interrupt, 0, DRV_NAME, dev);
if (irqval) { if (irqval) {
pr_cont("\n"); pr_cont("\n");
pr_err("3c507: unable to get IRQ %d (irqval=%d).\n", irq, irqval); pr_err("3c507: unable to get IRQ %d (irqval=%d).\n", irq, irqval);

View file

@ -780,7 +780,7 @@ el3_open(struct net_device *dev)
outw(RxReset, ioaddr + EL3_CMD); outw(RxReset, ioaddr + EL3_CMD);
outw(SetStatusEnb | 0x00, ioaddr + EL3_CMD); outw(SetStatusEnb | 0x00, ioaddr + EL3_CMD);
i = request_irq(dev->irq, &el3_interrupt, 0, dev->name, dev); i = request_irq(dev->irq, el3_interrupt, 0, dev->name, dev);
if (i) if (i)
return i; return i;

View file

@ -766,11 +766,11 @@ static int corkscrew_open(struct net_device *dev)
/* Corkscrew: Cannot share ISA resources. */ /* Corkscrew: Cannot share ISA resources. */
if (dev->irq == 0 if (dev->irq == 0
|| dev->dma == 0 || dev->dma == 0
|| request_irq(dev->irq, &corkscrew_interrupt, 0, || request_irq(dev->irq, corkscrew_interrupt, 0,
vp->product_name, dev)) return -EAGAIN; vp->product_name, dev)) return -EAGAIN;
enable_dma(dev->dma); enable_dma(dev->dma);
set_dma_mode(dev->dma, DMA_MODE_CASCADE); set_dma_mode(dev->dma, DMA_MODE_CASCADE);
} else if (request_irq(dev->irq, &corkscrew_interrupt, IRQF_SHARED, } else if (request_irq(dev->irq, corkscrew_interrupt, IRQF_SHARED,
vp->product_name, dev)) { vp->product_name, dev)) {
return -EAGAIN; return -EAGAIN;
} }

View file

@ -288,7 +288,7 @@ static int elmc_open(struct net_device *dev)
elmc_id_attn586(); /* disable interrupts */ elmc_id_attn586(); /* disable interrupts */
ret = request_irq(dev->irq, &elmc_interrupt, IRQF_SHARED | IRQF_SAMPLE_RANDOM, ret = request_irq(dev->irq, elmc_interrupt, IRQF_SHARED | IRQF_SAMPLE_RANDOM,
dev->name, dev); dev->name, dev);
if (ret) { if (ret) {
pr_err("%s: couldn't get irq %d\n", dev->name, dev->irq); pr_err("%s: couldn't get irq %d\n", dev->name, dev->irq);

View file

@ -443,7 +443,7 @@ static int __init mc32_probe1(struct net_device *dev, int slot)
* Grab the IRQ * Grab the IRQ
*/ */
err = request_irq(dev->irq, &mc32_interrupt, IRQF_SHARED | IRQF_SAMPLE_RANDOM, DRV_NAME, dev); err = request_irq(dev->irq, mc32_interrupt, IRQF_SHARED | IRQF_SAMPLE_RANDOM, DRV_NAME, dev);
if (err) { if (err) {
release_region(dev->base_addr, MC32_IO_EXTENT); release_region(dev->base_addr, MC32_IO_EXTENT);
pr_err("%s: unable to get IRQ %d.\n", DRV_NAME, dev->irq); pr_err("%s: unable to get IRQ %d.\n", DRV_NAME, dev->irq);

View file

@ -328,7 +328,7 @@ static int __init cops_probe1(struct net_device *dev, int ioaddr)
/* Reserve any actual interrupt. */ /* Reserve any actual interrupt. */
if (dev->irq) { if (dev->irq) {
retval = request_irq(dev->irq, &cops_interrupt, 0, dev->name, dev); retval = request_irq(dev->irq, cops_interrupt, 0, dev->name, dev);
if (retval) if (retval)
goto err_out; goto err_out;
} }

View file

@ -1158,7 +1158,7 @@ struct net_device * __init ltpc_probe(void)
} }
/* grab it and don't let go :-) */ /* grab it and don't let go :-) */
if (irq && request_irq( irq, &ltpc_interrupt, 0, "ltpc", dev) >= 0) if (irq && request_irq( irq, ltpc_interrupt, 0, "ltpc", dev) >= 0)
{ {
(void) inb_p(io+7); /* enable interrupts from board */ (void) inb_p(io+7); /* enable interrupts from board */
(void) inb_p(io+7); /* and reset irq line */ (void) inb_p(io+7); /* and reset irq line */

View file

@ -156,7 +156,7 @@ static int __init arcrimi_found(struct net_device *dev)
} }
/* reserve the irq */ /* reserve the irq */
if (request_irq(dev->irq, &arcnet_interrupt, 0, "arcnet (RIM I)", dev)) { if (request_irq(dev->irq, arcnet_interrupt, 0, "arcnet (RIM I)", dev)) {
iounmap(p); iounmap(p);
release_mem_region(dev->mem_start, MIRROR_SIZE); release_mem_region(dev->mem_start, MIRROR_SIZE);
BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", dev->irq); BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", dev->irq);

View file

@ -200,7 +200,7 @@ int com20020_found(struct net_device *dev, int shared)
outb(dev->dev_addr[0], _XREG); outb(dev->dev_addr[0], _XREG);
/* reserve the irq */ /* reserve the irq */
if (request_irq(dev->irq, &arcnet_interrupt, shared, if (request_irq(dev->irq, arcnet_interrupt, shared,
"arcnet (COM20020)", dev)) { "arcnet (COM20020)", dev)) {
BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", dev->irq); BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", dev->irq);
return -ENODEV; return -ENODEV;

View file

@ -238,7 +238,7 @@ static int __init com90io_found(struct net_device *dev)
int err; int err;
/* Reserve the irq */ /* Reserve the irq */
if (request_irq(dev->irq, &arcnet_interrupt, 0, "arcnet (COM90xx-IO)", dev)) { if (request_irq(dev->irq, arcnet_interrupt, 0, "arcnet (COM90xx-IO)", dev)) {
BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", dev->irq); BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", dev->irq);
return -ENODEV; return -ENODEV;
} }

View file

@ -501,7 +501,7 @@ static int __init com90xx_found(int ioaddr, int airq, u_long shmem, void __iomem
goto err_free_dev; goto err_free_dev;
/* reserve the irq */ /* reserve the irq */
if (request_irq(airq, &arcnet_interrupt, 0, "arcnet (90xx)", dev)) { if (request_irq(airq, arcnet_interrupt, 0, "arcnet (90xx)", dev)) {
BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", airq); BUGMSG(D_NORMAL, "Can't get IRQ %d!\n", airq);
goto err_release_mem; goto err_release_mem;
} }

View file

@ -468,7 +468,7 @@ found:
lp->jumpered = is_fmv18x; lp->jumpered = is_fmv18x;
lp->mca_slot = slot; lp->mca_slot = slot;
/* Snarf the interrupt vector now. */ /* Snarf the interrupt vector now. */
ret = request_irq(irq, &net_interrupt, 0, DRV_NAME, dev); ret = request_irq(irq, net_interrupt, 0, DRV_NAME, dev);
if (ret) { if (ret) {
printk(KERN_ERR "AT1700 at %#3x is unusable due to a " printk(KERN_ERR "AT1700 at %#3x is unusable due to a "
"conflict on IRQ %d.\n", "conflict on IRQ %d.\n",

View file

@ -1930,7 +1930,7 @@ static int atl1e_request_irq(struct atl1e_adapter *adapter)
if (!adapter->have_msi) if (!adapter->have_msi)
flags |= IRQF_SHARED; flags |= IRQF_SHARED;
err = request_irq(adapter->pdev->irq, &atl1e_intr, flags, err = request_irq(adapter->pdev->irq, atl1e_intr, flags,
netdev->name, netdev); netdev->name, netdev);
if (err) { if (err) {
dev_dbg(&pdev->dev, dev_dbg(&pdev->dev,

View file

@ -2589,7 +2589,7 @@ static s32 atl1_up(struct atl1_adapter *adapter)
irq_flags |= IRQF_SHARED; irq_flags |= IRQF_SHARED;
} }
err = request_irq(adapter->pdev->irq, &atl1_intr, irq_flags, err = request_irq(adapter->pdev->irq, atl1_intr, irq_flags,
netdev->name, netdev); netdev->name, netdev);
if (unlikely(err)) if (unlikely(err))
goto err_up; goto err_up;

View file

@ -651,7 +651,7 @@ static int atl2_request_irq(struct atl2_adapter *adapter)
if (adapter->have_msi) if (adapter->have_msi)
flags &= ~IRQF_SHARED; flags &= ~IRQF_SHARED;
return request_irq(adapter->pdev->irq, &atl2_intr, flags, netdev->name, return request_irq(adapter->pdev->irq, atl2_intr, flags, netdev->name,
netdev); netdev);
} }

View file

@ -437,7 +437,7 @@ static int net_open(struct net_device *dev)
/* The interrupt line is turned off (tri-stated) when the device isn't in /* The interrupt line is turned off (tri-stated) when the device isn't in
use. That's especially important for "attached" interfaces where the use. That's especially important for "attached" interfaces where the
port or interrupt may be shared. */ port or interrupt may be shared. */
ret = request_irq(dev->irq, &atp_interrupt, 0, dev->name, dev); ret = request_irq(dev->irq, atp_interrupt, 0, dev->name, dev);
if (ret) if (ret)
return ret; return ret;

View file

@ -881,7 +881,7 @@ static int au1000_open(struct net_device *dev)
if (au1000_debug > 4) if (au1000_debug > 4)
printk("%s: open: dev=%p\n", dev->name, dev); printk("%s: open: dev=%p\n", dev->name, dev);
if ((retval = request_irq(dev->irq, &au1000_interrupt, 0, if ((retval = request_irq(dev->irq, au1000_interrupt, 0,
dev->name, dev))) { dev->name, dev))) {
printk(KERN_ERR "%s: unable to get IRQ %d\n", printk(KERN_ERR "%s: unable to get IRQ %d\n",
dev->name, dev->irq); dev->name, dev->irq);

View file

@ -1323,7 +1323,7 @@ net_open(struct net_device *dev)
writereg(dev, PP_BusCTL, ENABLE_IRQ | MEMORY_ON); writereg(dev, PP_BusCTL, ENABLE_IRQ | MEMORY_ON);
#endif #endif
write_irq(dev, lp->chip_type, dev->irq); write_irq(dev, lp->chip_type, dev->irq);
ret = request_irq(dev->irq, &net_interrupt, 0, dev->name, dev); ret = request_irq(dev->irq, net_interrupt, 0, dev->name, dev);
if (ret) { if (ret) {
if (net_debug) if (net_debug)
printk(KERN_DEBUG "cs89x0: request_irq(%d) failed\n", dev->irq); printk(KERN_DEBUG "cs89x0: request_irq(%d) failed\n", dev->irq);

View file

@ -801,14 +801,14 @@ static int lance_open(struct net_device *dev)
netif_start_queue(dev); netif_start_queue(dev);
/* Associate IRQ with lance_interrupt */ /* Associate IRQ with lance_interrupt */
if (request_irq(dev->irq, &lance_interrupt, 0, "lance", dev)) { if (request_irq(dev->irq, lance_interrupt, 0, "lance", dev)) {
printk("%s: Can't get IRQ %d\n", dev->name, dev->irq); printk("%s: Can't get IRQ %d\n", dev->name, dev->irq);
return -EAGAIN; return -EAGAIN;
} }
if (lp->dma_irq >= 0) { if (lp->dma_irq >= 0) {
unsigned long flags; unsigned long flags;
if (request_irq(lp->dma_irq, &lance_dma_merr_int, 0, if (request_irq(lp->dma_irq, lance_dma_merr_int, 0,
"lance error", dev)) { "lance error", dev)) {
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
printk("%s: Can't get DMA IRQ %d\n", dev->name, printk("%s: Can't get DMA IRQ %d\n", dev->name,

View file

@ -849,7 +849,7 @@ static int depca_open(struct net_device *dev)
depca_dbg_open(dev); depca_dbg_open(dev);
if (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name, dev)) { if (request_irq(dev->irq, depca_interrupt, 0, lp->adapter_name, dev)) {
printk("depca_open(): Requested IRQ%d is busy\n", dev->irq); printk("depca_open(): Requested IRQ%d is busy\n", dev->irq);
status = -EAGAIN; status = -EAGAIN;
} else { } else {

View file

@ -411,7 +411,7 @@ rio_open (struct net_device *dev)
int i; int i;
u16 macctrl; u16 macctrl;
i = request_irq (dev->irq, &rio_interrupt, IRQF_SHARED, dev->name, dev); i = request_irq (dev->irq, rio_interrupt, IRQF_SHARED, dev->name, dev);
if (i) if (i)
return i; return i;

View file

@ -1175,7 +1175,7 @@ dm9000_open(struct net_device *dev)
irqflags |= IRQF_SHARED; irqflags |= IRQF_SHARED;
if (request_irq(dev->irq, &dm9000_interrupt, irqflags, dev->name, dev)) if (request_irq(dev->irq, dm9000_interrupt, irqflags, dev->name, dev))
return -EAGAIN; return -EAGAIN;
/* Initialize DM9000 board */ /* Initialize DM9000 board */

View file

@ -869,10 +869,10 @@ static int e1000_intr_test(struct e1000_adapter *adapter, u64 *data)
/* NOTE: we don't test MSI interrupts here, yet */ /* NOTE: we don't test MSI interrupts here, yet */
/* Hook up test interrupt handler just for this test */ /* Hook up test interrupt handler just for this test */
if (!request_irq(irq, &e1000_test_intr, IRQF_PROBE_SHARED, netdev->name, if (!request_irq(irq, e1000_test_intr, IRQF_PROBE_SHARED, netdev->name,
netdev)) netdev))
shared_int = false; shared_int = false;
else if (request_irq(irq, &e1000_test_intr, IRQF_SHARED, else if (request_irq(irq, e1000_test_intr, IRQF_SHARED,
netdev->name, netdev)) { netdev->name, netdev)) {
*data = 1; *data = 1;
return -1; return -1;

View file

@ -937,10 +937,10 @@ static int e1000_intr_test(struct e1000_adapter *adapter, u64 *data)
e1000e_set_interrupt_capability(adapter); e1000e_set_interrupt_capability(adapter);
} }
/* Hook up test interrupt handler just for this test */ /* Hook up test interrupt handler just for this test */
if (!request_irq(irq, &e1000_test_intr, IRQF_PROBE_SHARED, netdev->name, if (!request_irq(irq, e1000_test_intr, IRQF_PROBE_SHARED, netdev->name,
netdev)) { netdev)) {
shared_int = 0; shared_int = 0;
} else if (request_irq(irq, &e1000_test_intr, IRQF_SHARED, } else if (request_irq(irq, e1000_test_intr, IRQF_SHARED,
netdev->name, netdev)) { netdev->name, netdev)) {
*data = 1; *data = 1;
ret_val = -1; ret_val = -1;

View file

@ -1458,7 +1458,7 @@ static int e1000_request_msix(struct e1000_adapter *adapter)
else else
memcpy(adapter->rx_ring->name, netdev->name, IFNAMSIZ); memcpy(adapter->rx_ring->name, netdev->name, IFNAMSIZ);
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&e1000_intr_msix_rx, 0, adapter->rx_ring->name, e1000_intr_msix_rx, 0, adapter->rx_ring->name,
netdev); netdev);
if (err) if (err)
goto out; goto out;
@ -1471,7 +1471,7 @@ static int e1000_request_msix(struct e1000_adapter *adapter)
else else
memcpy(adapter->tx_ring->name, netdev->name, IFNAMSIZ); memcpy(adapter->tx_ring->name, netdev->name, IFNAMSIZ);
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&e1000_intr_msix_tx, 0, adapter->tx_ring->name, e1000_intr_msix_tx, 0, adapter->tx_ring->name,
netdev); netdev);
if (err) if (err)
goto out; goto out;
@ -1480,7 +1480,7 @@ static int e1000_request_msix(struct e1000_adapter *adapter)
vector++; vector++;
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&e1000_msix_other, 0, netdev->name, netdev); e1000_msix_other, 0, netdev->name, netdev);
if (err) if (err)
goto out; goto out;
@ -1511,7 +1511,7 @@ static int e1000_request_irq(struct e1000_adapter *adapter)
e1000e_set_interrupt_capability(adapter); e1000e_set_interrupt_capability(adapter);
} }
if (adapter->flags & FLAG_MSI_ENABLED) { if (adapter->flags & FLAG_MSI_ENABLED) {
err = request_irq(adapter->pdev->irq, &e1000_intr_msi, 0, err = request_irq(adapter->pdev->irq, e1000_intr_msi, 0,
netdev->name, netdev); netdev->name, netdev);
if (!err) if (!err)
return err; return err;
@ -1521,7 +1521,7 @@ static int e1000_request_irq(struct e1000_adapter *adapter)
adapter->int_mode = E1000E_INT_MODE_LEGACY; adapter->int_mode = E1000E_INT_MODE_LEGACY;
} }
err = request_irq(adapter->pdev->irq, &e1000_intr, IRQF_SHARED, err = request_irq(adapter->pdev->irq, e1000_intr, IRQF_SHARED,
netdev->name, netdev); netdev->name, netdev);
if (err) if (err)
e_err("Unable to allocate interrupt, Error: %d\n", err); e_err("Unable to allocate interrupt, Error: %d\n", err);
@ -2970,7 +2970,7 @@ static int e1000_test_msi_interrupt(struct e1000_adapter *adapter)
if (err) if (err)
goto msi_test_failed; goto msi_test_failed;
err = request_irq(adapter->pdev->irq, &e1000_intr_msi_test, 0, err = request_irq(adapter->pdev->irq, e1000_intr_msi_test, 0,
netdev->name, netdev); netdev->name, netdev);
if (err) { if (err) {
pci_disable_msi(adapter->pdev); pci_disable_msi(adapter->pdev);

View file

@ -990,7 +990,7 @@ static int eepro_open(struct net_device *dev)
return -EAGAIN; return -EAGAIN;
} }
if (request_irq(dev->irq , &eepro_interrupt, 0, dev->name, dev)) { if (request_irq(dev->irq , eepro_interrupt, 0, dev->name, dev)) {
printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, dev->irq); printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, dev->irq);
return -EAGAIN; return -EAGAIN;
} }

View file

@ -457,7 +457,7 @@ static int eexp_open(struct net_device *dev)
if (!dev->irq || !irqrmap[dev->irq]) if (!dev->irq || !irqrmap[dev->irq])
return -ENXIO; return -ENXIO;
ret = request_irq(dev->irq, &eexp_irq, 0, dev->name, dev); ret = request_irq(dev->irq, eexp_irq, 0, dev->name, dev);
if (ret) if (ret)
return ret; return ret;

View file

@ -668,7 +668,7 @@ static int epic_open(struct net_device *dev)
outl(0x4001, ioaddr + GENCTL); outl(0x4001, ioaddr + GENCTL);
napi_enable(&ep->napi); napi_enable(&ep->napi);
if ((retval = request_irq(dev->irq, &epic_interrupt, IRQF_SHARED, dev->name, dev))) { if ((retval = request_irq(dev->irq, epic_interrupt, IRQF_SHARED, dev->name, dev))) {
napi_disable(&ep->napi); napi_disable(&ep->napi);
return retval; return retval;
} }

View file

@ -839,7 +839,7 @@ static int netdev_open(struct net_device *dev)
iowrite32(0x00000001, ioaddr + BCR); /* Reset */ iowrite32(0x00000001, ioaddr + BCR); /* Reset */
if (request_irq(dev->irq, &intr_handler, IRQF_SHARED, dev->name, dev)) if (request_irq(dev->irq, intr_handler, IRQF_SHARED, dev->name, dev))
return -EAGAIN; return -EAGAIN;
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)

View file

@ -226,17 +226,17 @@ static int mpc52xx_fec_open(struct net_device *dev)
phy_start(priv->phydev); phy_start(priv->phydev);
} }
if (request_irq(dev->irq, &mpc52xx_fec_interrupt, IRQF_SHARED, if (request_irq(dev->irq, mpc52xx_fec_interrupt, IRQF_SHARED,
DRIVER_NAME "_ctrl", dev)) { DRIVER_NAME "_ctrl", dev)) {
dev_err(&dev->dev, "ctrl interrupt request failed\n"); dev_err(&dev->dev, "ctrl interrupt request failed\n");
goto free_phy; goto free_phy;
} }
if (request_irq(priv->r_irq, &mpc52xx_fec_rx_interrupt, 0, if (request_irq(priv->r_irq, mpc52xx_fec_rx_interrupt, 0,
DRIVER_NAME "_rx", dev)) { DRIVER_NAME "_rx", dev)) {
dev_err(&dev->dev, "rx interrupt request failed\n"); dev_err(&dev->dev, "rx interrupt request failed\n");
goto free_ctrl_irq; goto free_ctrl_irq;
} }
if (request_irq(priv->t_irq, &mpc52xx_fec_tx_interrupt, 0, if (request_irq(priv->t_irq, mpc52xx_fec_tx_interrupt, 0,
DRIVER_NAME "_tx", dev)) { DRIVER_NAME "_tx", dev)) {
dev_err(&dev->dev, "tx interrupt request failed\n"); dev_err(&dev->dev, "tx interrupt request failed\n");
goto free_2irqs; goto free_2irqs;

View file

@ -4004,7 +4004,7 @@ static int nv_request_irq(struct net_device *dev, int intr_test)
/* Request irq for rx handling */ /* Request irq for rx handling */
sprintf(np->name_rx, "%s-rx", dev->name); sprintf(np->name_rx, "%s-rx", dev->name);
if (request_irq(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector, if (request_irq(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector,
&nv_nic_irq_rx, IRQF_SHARED, np->name_rx, dev) != 0) { nv_nic_irq_rx, IRQF_SHARED, np->name_rx, dev) != 0) {
printk(KERN_INFO "forcedeth: request_irq failed for rx %d\n", ret); printk(KERN_INFO "forcedeth: request_irq failed for rx %d\n", ret);
pci_disable_msix(np->pci_dev); pci_disable_msix(np->pci_dev);
np->msi_flags &= ~NV_MSI_X_ENABLED; np->msi_flags &= ~NV_MSI_X_ENABLED;
@ -4013,7 +4013,7 @@ static int nv_request_irq(struct net_device *dev, int intr_test)
/* Request irq for tx handling */ /* Request irq for tx handling */
sprintf(np->name_tx, "%s-tx", dev->name); sprintf(np->name_tx, "%s-tx", dev->name);
if (request_irq(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector, if (request_irq(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector,
&nv_nic_irq_tx, IRQF_SHARED, np->name_tx, dev) != 0) { nv_nic_irq_tx, IRQF_SHARED, np->name_tx, dev) != 0) {
printk(KERN_INFO "forcedeth: request_irq failed for tx %d\n", ret); printk(KERN_INFO "forcedeth: request_irq failed for tx %d\n", ret);
pci_disable_msix(np->pci_dev); pci_disable_msix(np->pci_dev);
np->msi_flags &= ~NV_MSI_X_ENABLED; np->msi_flags &= ~NV_MSI_X_ENABLED;
@ -4022,7 +4022,7 @@ static int nv_request_irq(struct net_device *dev, int intr_test)
/* Request irq for link and timer handling */ /* Request irq for link and timer handling */
sprintf(np->name_other, "%s-other", dev->name); sprintf(np->name_other, "%s-other", dev->name);
if (request_irq(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector, if (request_irq(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector,
&nv_nic_irq_other, IRQF_SHARED, np->name_other, dev) != 0) { nv_nic_irq_other, IRQF_SHARED, np->name_other, dev) != 0) {
printk(KERN_INFO "forcedeth: request_irq failed for link %d\n", ret); printk(KERN_INFO "forcedeth: request_irq failed for link %d\n", ret);
pci_disable_msix(np->pci_dev); pci_disable_msix(np->pci_dev);
np->msi_flags &= ~NV_MSI_X_ENABLED; np->msi_flags &= ~NV_MSI_X_ENABLED;

View file

@ -872,7 +872,7 @@ static int hamachi_open(struct net_device *dev)
u32 rx_int_var, tx_int_var; u32 rx_int_var, tx_int_var;
u16 fifo_info; u16 fifo_info;
i = request_irq(dev->irq, &hamachi_interrupt, IRQF_SHARED, dev->name, dev); i = request_irq(dev->irq, hamachi_interrupt, IRQF_SHARED, dev->name, dev);
if (i) if (i)
return i; return i;

View file

@ -625,7 +625,7 @@ static int ibmveth_open(struct net_device *netdev)
} }
ibmveth_debug_printk("registering irq 0x%x\n", netdev->irq); ibmveth_debug_printk("registering irq 0x%x\n", netdev->irq);
if((rc = request_irq(netdev->irq, &ibmveth_interrupt, 0, netdev->name, netdev)) != 0) { if((rc = request_irq(netdev->irq, ibmveth_interrupt, 0, netdev->name, netdev)) != 0) {
ibmveth_error_printk("unable to request irq 0x%x, rc %d\n", netdev->irq, rc); ibmveth_error_printk("unable to request irq 0x%x, rc %d\n", netdev->irq, rc);
do { do {
rc = h_free_logical_lan(adapter->vdev->unit_address); rc = h_free_logical_lan(adapter->vdev->unit_address);

View file

@ -1133,21 +1133,21 @@ static int igb_intr_test(struct igb_adapter *adapter, u64 *data)
/* Hook up test interrupt handler just for this test */ /* Hook up test interrupt handler just for this test */
if (adapter->msix_entries) { if (adapter->msix_entries) {
if (request_irq(adapter->msix_entries[0].vector, if (request_irq(adapter->msix_entries[0].vector,
&igb_test_intr, 0, netdev->name, adapter)) { igb_test_intr, 0, netdev->name, adapter)) {
*data = 1; *data = 1;
return -1; return -1;
} }
} else if (adapter->flags & IGB_FLAG_HAS_MSI) { } else if (adapter->flags & IGB_FLAG_HAS_MSI) {
shared_int = false; shared_int = false;
if (request_irq(irq, if (request_irq(irq,
&igb_test_intr, 0, netdev->name, adapter)) { igb_test_intr, 0, netdev->name, adapter)) {
*data = 1; *data = 1;
return -1; return -1;
} }
} else if (!request_irq(irq, &igb_test_intr, IRQF_PROBE_SHARED, } else if (!request_irq(irq, igb_test_intr, IRQF_PROBE_SHARED,
netdev->name, adapter)) { netdev->name, adapter)) {
shared_int = false; shared_int = false;
} else if (request_irq(irq, &igb_test_intr, IRQF_SHARED, } else if (request_irq(irq, igb_test_intr, IRQF_SHARED,
netdev->name, adapter)) { netdev->name, adapter)) {
*data = 1; *data = 1;
return -1; return -1;

View file

@ -525,7 +525,7 @@ static int igb_request_msix(struct igb_adapter *adapter)
int i, err = 0, vector = 0; int i, err = 0, vector = 0;
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&igb_msix_other, 0, netdev->name, adapter); igb_msix_other, 0, netdev->name, adapter);
if (err) if (err)
goto out; goto out;
vector++; vector++;
@ -548,7 +548,7 @@ static int igb_request_msix(struct igb_adapter *adapter)
sprintf(q_vector->name, "%s-unused", netdev->name); sprintf(q_vector->name, "%s-unused", netdev->name);
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&igb_msix_ring, 0, q_vector->name, igb_msix_ring, 0, q_vector->name,
q_vector); q_vector);
if (err) if (err)
goto out; goto out;
@ -875,7 +875,7 @@ static int igb_request_irq(struct igb_adapter *adapter)
} }
if (adapter->flags & IGB_FLAG_HAS_MSI) { if (adapter->flags & IGB_FLAG_HAS_MSI) {
err = request_irq(adapter->pdev->irq, &igb_intr_msi, 0, err = request_irq(adapter->pdev->irq, igb_intr_msi, 0,
netdev->name, adapter); netdev->name, adapter);
if (!err) if (!err)
goto request_done; goto request_done;
@ -885,7 +885,7 @@ static int igb_request_irq(struct igb_adapter *adapter)
adapter->flags &= ~IGB_FLAG_HAS_MSI; adapter->flags &= ~IGB_FLAG_HAS_MSI;
} }
err = request_irq(adapter->pdev->irq, &igb_intr, IRQF_SHARED, err = request_irq(adapter->pdev->irq, igb_intr, IRQF_SHARED,
netdev->name, adapter); netdev->name, adapter);
if (err) if (err)

View file

@ -1043,7 +1043,7 @@ static int igbvf_request_msix(struct igbvf_adapter *adapter)
} }
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&igbvf_intr_msix_tx, 0, adapter->tx_ring->name, igbvf_intr_msix_tx, 0, adapter->tx_ring->name,
netdev); netdev);
if (err) if (err)
goto out; goto out;
@ -1053,7 +1053,7 @@ static int igbvf_request_msix(struct igbvf_adapter *adapter)
vector++; vector++;
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&igbvf_intr_msix_rx, 0, adapter->rx_ring->name, igbvf_intr_msix_rx, 0, adapter->rx_ring->name,
netdev); netdev);
if (err) if (err)
goto out; goto out;
@ -1063,7 +1063,7 @@ static int igbvf_request_msix(struct igbvf_adapter *adapter)
vector++; vector++;
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&igbvf_msix_other, 0, netdev->name, netdev); igbvf_msix_other, 0, netdev->name, netdev);
if (err) if (err)
goto out; goto out;

View file

@ -353,13 +353,13 @@ static int au1k_irda_start(struct net_device *dev)
return retval; return retval;
} }
if ((retval = request_irq(AU1000_IRDA_TX_INT, &au1k_irda_interrupt, if ((retval = request_irq(AU1000_IRDA_TX_INT, au1k_irda_interrupt,
0, dev->name, dev))) { 0, dev->name, dev))) {
printk(KERN_ERR "%s: unable to get IRQ %d\n", printk(KERN_ERR "%s: unable to get IRQ %d\n",
dev->name, dev->irq); dev->name, dev->irq);
return retval; return retval;
} }
if ((retval = request_irq(AU1000_IRDA_RX_INT, &au1k_irda_interrupt, if ((retval = request_irq(AU1000_IRDA_RX_INT, au1k_irda_interrupt,
0, dev->name, dev))) { 0, dev->name, dev))) {
free_irq(AU1000_IRDA_TX_INT, dev); free_irq(AU1000_IRDA_TX_INT, dev);
printk(KERN_ERR "%s: unable to get IRQ %d\n", printk(KERN_ERR "%s: unable to get IRQ %d\n",

View file

@ -260,7 +260,7 @@ static int __init netcard_probe1(struct net_device *dev, int ioaddr)
dev->irq = 9; dev->irq = 9;
{ {
int irqval = request_irq(dev->irq, &net_interrupt, 0, cardname, dev); int irqval = request_irq(dev->irq, net_interrupt, 0, cardname, dev);
if (irqval) { if (irqval) {
printk("%s: unable to get IRQ %d (irqval=%d).\n", printk("%s: unable to get IRQ %d (irqval=%d).\n",
dev->name, dev->irq, irqval); dev->name, dev->irq, irqval);
@ -378,7 +378,7 @@ net_open(struct net_device *dev)
* This is used if the interrupt line can turned off (shared). * This is used if the interrupt line can turned off (shared).
* See 3c503.c for an example of selecting the IRQ at config-time. * See 3c503.c for an example of selecting the IRQ at config-time.
*/ */
if (request_irq(dev->irq, &net_interrupt, 0, cardname, dev)) { if (request_irq(dev->irq, net_interrupt, 0, cardname, dev)) {
return -EAGAIN; return -EAGAIN;
} }
/* /*

View file

@ -233,7 +233,7 @@ ixgb_up(struct ixgb_adapter *adapter)
/* proceed to try to request regular interrupt */ /* proceed to try to request regular interrupt */
} }
err = request_irq(adapter->pdev->irq, &ixgb_intr, irq_flags, err = request_irq(adapter->pdev->irq, ixgb_intr, irq_flags,
netdev->name, netdev); netdev->name, netdev);
if (err) { if (err) {
if (adapter->have_msi) if (adapter->have_msi)

View file

@ -1274,15 +1274,15 @@ static int ixgbe_intr_test(struct ixgbe_adapter *adapter, u64 *data)
return 0; return 0;
} else if (adapter->flags & IXGBE_FLAG_MSI_ENABLED) { } else if (adapter->flags & IXGBE_FLAG_MSI_ENABLED) {
shared_int = false; shared_int = false;
if (request_irq(irq, &ixgbe_test_intr, 0, netdev->name, if (request_irq(irq, ixgbe_test_intr, 0, netdev->name,
netdev)) { netdev)) {
*data = 1; *data = 1;
return -1; return -1;
} }
} else if (!request_irq(irq, &ixgbe_test_intr, IRQF_PROBE_SHARED, } else if (!request_irq(irq, ixgbe_test_intr, IRQF_PROBE_SHARED,
netdev->name, netdev)) { netdev->name, netdev)) {
shared_int = false; shared_int = false;
} else if (request_irq(irq, &ixgbe_test_intr, IRQF_SHARED, } else if (request_irq(irq, ixgbe_test_intr, IRQF_SHARED,
netdev->name, netdev)) { netdev->name, netdev)) {
*data = 1; *data = 1;
return -1; return -1;

View file

@ -1661,7 +1661,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter)
sprintf(adapter->name[vector], "%s:lsc", netdev->name); sprintf(adapter->name[vector], "%s:lsc", netdev->name);
err = request_irq(adapter->msix_entries[vector].vector, err = request_irq(adapter->msix_entries[vector].vector,
&ixgbe_msix_lsc, 0, adapter->name[vector], netdev); ixgbe_msix_lsc, 0, adapter->name[vector], netdev);
if (err) { if (err) {
DPRINTK(PROBE, ERR, DPRINTK(PROBE, ERR,
"request_irq for msix_lsc failed: %d\n", err); "request_irq for msix_lsc failed: %d\n", err);
@ -1832,10 +1832,10 @@ static int ixgbe_request_irq(struct ixgbe_adapter *adapter)
if (adapter->flags & IXGBE_FLAG_MSIX_ENABLED) { if (adapter->flags & IXGBE_FLAG_MSIX_ENABLED) {
err = ixgbe_request_msix_irqs(adapter); err = ixgbe_request_msix_irqs(adapter);
} else if (adapter->flags & IXGBE_FLAG_MSI_ENABLED) { } else if (adapter->flags & IXGBE_FLAG_MSI_ENABLED) {
err = request_irq(adapter->pdev->irq, &ixgbe_intr, 0, err = request_irq(adapter->pdev->irq, ixgbe_intr, 0,
netdev->name, netdev); netdev->name, netdev);
} else { } else {
err = request_irq(adapter->pdev->irq, &ixgbe_intr, IRQF_SHARED, err = request_irq(adapter->pdev->irq, ixgbe_intr, IRQF_SHARED,
netdev->name, netdev); netdev->name, netdev);
} }

View file

@ -81,7 +81,7 @@ static unsigned short known_revisions[] =
static int jazzsonic_open(struct net_device* dev) static int jazzsonic_open(struct net_device* dev)
{ {
if (request_irq(dev->irq, &sonic_interrupt, IRQF_DISABLED, "sonic", dev)) { if (request_irq(dev->irq, sonic_interrupt, IRQF_DISABLED, "sonic", dev)) {
printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, dev->irq); printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, dev->irq);
return -EAGAIN; return -EAGAIN;
} }

View file

@ -1014,14 +1014,14 @@ static int korina_open(struct net_device *dev)
/* Install the interrupt handler /* Install the interrupt handler
* that handles the Done Finished * that handles the Done Finished
* Ovr and Und Events */ * Ovr and Und Events */
ret = request_irq(lp->rx_irq, &korina_rx_dma_interrupt, ret = request_irq(lp->rx_irq, korina_rx_dma_interrupt,
IRQF_DISABLED, "Korina ethernet Rx", dev); IRQF_DISABLED, "Korina ethernet Rx", dev);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "%s: unable to get Rx DMA IRQ %d\n", printk(KERN_ERR "%s: unable to get Rx DMA IRQ %d\n",
dev->name, lp->rx_irq); dev->name, lp->rx_irq);
goto err_release; goto err_release;
} }
ret = request_irq(lp->tx_irq, &korina_tx_dma_interrupt, ret = request_irq(lp->tx_irq, korina_tx_dma_interrupt,
IRQF_DISABLED, "Korina ethernet Tx", dev); IRQF_DISABLED, "Korina ethernet Tx", dev);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "%s: unable to get Tx DMA IRQ %d\n", printk(KERN_ERR "%s: unable to get Tx DMA IRQ %d\n",
@ -1030,7 +1030,7 @@ static int korina_open(struct net_device *dev)
} }
/* Install handler for overrun error. */ /* Install handler for overrun error. */
ret = request_irq(lp->ovr_irq, &korina_ovr_interrupt, ret = request_irq(lp->ovr_irq, korina_ovr_interrupt,
IRQF_DISABLED, "Ethernet Overflow", dev); IRQF_DISABLED, "Ethernet Overflow", dev);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "%s: unable to get OVR IRQ %d\n", printk(KERN_ERR "%s: unable to get OVR IRQ %d\n",
@ -1039,7 +1039,7 @@ static int korina_open(struct net_device *dev)
} }
/* Install handler for underflow error. */ /* Install handler for underflow error. */
ret = request_irq(lp->und_irq, &korina_und_interrupt, ret = request_irq(lp->und_irq, korina_und_interrupt,
IRQF_DISABLED, "Ethernet Underflow", dev); IRQF_DISABLED, "Ethernet Underflow", dev);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "%s: unable to get UND IRQ %d\n", printk(KERN_ERR "%s: unable to get UND IRQ %d\n",

View file

@ -755,7 +755,7 @@ lance_open(struct net_device *dev)
int i; int i;
if (dev->irq == 0 || if (dev->irq == 0 ||
request_irq(dev->irq, &lance_interrupt, 0, lp->name, dev)) { request_irq(dev->irq, lance_interrupt, 0, lp->name, dev)) {
return -EAGAIN; return -EAGAIN;
} }

View file

@ -588,7 +588,7 @@ static int init_i596_mem(struct net_device *dev)
"%s: i82596 initialization successful\n", "%s: i82596 initialization successful\n",
dev->name)); dev->name));
if (request_irq(dev->irq, &i596_interrupt, 0, "i82596", dev)) { if (request_irq(dev->irq, i596_interrupt, 0, "i82596", dev)) {
printk(KERN_ERR "%s: IRQ %d not free\n", dev->name, dev->irq); printk(KERN_ERR "%s: IRQ %d not free\n", dev->name, dev->irq);
goto failed; goto failed;
} }

View file

@ -845,7 +845,7 @@ static int i596_open(struct net_device *dev)
{ {
int i; int i;
i = request_irq(dev->irq, &i596_interrupt, IRQF_SHARED, dev->name, dev); i = request_irq(dev->irq, i596_interrupt, IRQF_SHARED, dev->name, dev);
if (i) { if (i) {
printk(KERN_ERR "%s: IRQ %d not free\n", dev->name, dev->irq); printk(KERN_ERR "%s: IRQ %d not free\n", dev->name, dev->irq);
return i; return i;

View file

@ -337,7 +337,7 @@ net_open(struct net_device *dev)
writereg(dev, PP_BusCTL, readreg(dev, PP_BusCTL) & ~ENABLE_IRQ); writereg(dev, PP_BusCTL, readreg(dev, PP_BusCTL) & ~ENABLE_IRQ);
/* Grab the interrupt */ /* Grab the interrupt */
if (request_irq(dev->irq, &net_interrupt, 0, "cs89x0", dev)) if (request_irq(dev->irq, net_interrupt, 0, "cs89x0", dev))
return -EAGAIN; return -EAGAIN;
/* Set up the IRQ - Apparently magic */ /* Set up the IRQ - Apparently magic */

View file

@ -140,7 +140,7 @@ static irqreturn_t macsonic_interrupt(int irq, void *dev_id)
static int macsonic_open(struct net_device* dev) static int macsonic_open(struct net_device* dev)
{ {
if (request_irq(dev->irq, &sonic_interrupt, IRQ_FLG_FAST, "sonic", dev)) { if (request_irq(dev->irq, sonic_interrupt, IRQ_FLG_FAST, "sonic", dev)) {
printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, dev->irq); printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, dev->irq);
return -EAGAIN; return -EAGAIN;
} }
@ -149,7 +149,7 @@ static int macsonic_open(struct net_device* dev)
* rupt as well, which must prevent re-entrance of the sonic handler. * rupt as well, which must prevent re-entrance of the sonic handler.
*/ */
if (dev->irq == IRQ_AUTO_3) if (dev->irq == IRQ_AUTO_3)
if (request_irq(IRQ_NUBUS_9, &macsonic_interrupt, IRQ_FLG_FAST, "sonic", dev)) { if (request_irq(IRQ_NUBUS_9, macsonic_interrupt, IRQ_FLG_FAST, "sonic", dev)) {
printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, IRQ_NUBUS_9); printk(KERN_ERR "%s: unable to get IRQ %d.\n", dev->name, IRQ_NUBUS_9);
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
return -EAGAIN; return -EAGAIN;

View file

@ -211,7 +211,7 @@ static int mipsnet_open(struct net_device *dev)
{ {
int err; int err;
err = request_irq(dev->irq, &mipsnet_interrupt, err = request_irq(dev->irq, mipsnet_interrupt,
IRQF_SHARED, dev->name, (void *) dev); IRQF_SHARED, dev->name, (void *) dev);
if (err) { if (err) {
release_region(dev->base_addr, sizeof(struct mipsnet_regs)); release_region(dev->base_addr, sizeof(struct mipsnet_regs));

View file

@ -1084,7 +1084,7 @@ static int __devinit myri_sbus_probe(struct of_device *op, const struct of_devic
/* Register interrupt handler now. */ /* Register interrupt handler now. */
DET(("Requesting MYRIcom IRQ line.\n")); DET(("Requesting MYRIcom IRQ line.\n"));
if (request_irq(dev->irq, &myri_interrupt, if (request_irq(dev->irq, myri_interrupt,
IRQF_SHARED, "MyriCOM Ethernet", (void *) dev)) { IRQF_SHARED, "MyriCOM Ethernet", (void *) dev)) {
printk("MyriCOM: Cannot register interrupt handler.\n"); printk("MyriCOM: Cannot register interrupt handler.\n");
goto err; goto err;

View file

@ -1535,7 +1535,7 @@ static int netdev_open(struct net_device *dev)
/* Reset the chip, just in case. */ /* Reset the chip, just in case. */
natsemi_reset(dev); natsemi_reset(dev);
i = request_irq(dev->irq, &intr_handler, IRQF_SHARED, dev->name, dev); i = request_irq(dev->irq, intr_handler, IRQF_SHARED, dev->name, dev);
if (i) return i; if (i) return i;
if (netif_msg_ifup(np)) if (netif_msg_ifup(np))

View file

@ -212,7 +212,7 @@ static int netx_eth_open(struct net_device *ndev)
struct netx_eth_priv *priv = netdev_priv(ndev); struct netx_eth_priv *priv = netdev_priv(ndev);
if (request_irq if (request_irq
(ndev->irq, &netx_eth_interrupt, IRQF_SHARED, ndev->name, ndev)) (ndev->irq, netx_eth_interrupt, IRQF_SHARED, ndev->name, ndev))
return -EAGAIN; return -EAGAIN;
writel(ndev->dev_addr[0] | writel(ndev->dev_addr[0] |

View file

@ -377,7 +377,7 @@ static int ni5010_open(struct net_device *dev)
PRINTK2((KERN_DEBUG "%s: entering ni5010_open()\n", dev->name)); PRINTK2((KERN_DEBUG "%s: entering ni5010_open()\n", dev->name));
if (request_irq(dev->irq, &ni5010_interrupt, 0, boardname, dev)) { if (request_irq(dev->irq, ni5010_interrupt, 0, boardname, dev)) {
printk(KERN_WARNING "%s: Cannot get irq %#2x\n", dev->name, dev->irq); printk(KERN_WARNING "%s: Cannot get irq %#2x\n", dev->name, dev->irq);
return -EAGAIN; return -EAGAIN;
} }

View file

@ -284,7 +284,7 @@ static int ni52_open(struct net_device *dev)
startrecv586(dev); startrecv586(dev);
ni_enaint(); ni_enaint();
ret = request_irq(dev->irq, &ni52_interrupt, 0, dev->name, dev); ret = request_irq(dev->irq, ni52_interrupt, 0, dev->name, dev);
if (ret) { if (ret) {
ni_reset586(); ni_reset586();
return ret; return ret;

View file

@ -294,7 +294,7 @@ static void ni65_set_performance(struct priv *p)
static int ni65_open(struct net_device *dev) static int ni65_open(struct net_device *dev)
{ {
struct priv *p = dev->ml_priv; struct priv *p = dev->ml_priv;
int irqval = request_irq(dev->irq, &ni65_interrupt,0, int irqval = request_irq(dev->irq, ni65_interrupt,0,
cards[p->cardno].cardname,dev); cards[p->cardno].cardname,dev);
if (irqval) { if (irqval) {
printk(KERN_ERR "%s: unable to get IRQ %d (irqval=%d).\n", printk(KERN_ERR "%s: unable to get IRQ %d (irqval=%d).\n",

View file

@ -1216,7 +1216,7 @@ static int pasemi_mac_open(struct net_device *dev)
snprintf(mac->tx_irq_name, sizeof(mac->tx_irq_name), "%s tx", snprintf(mac->tx_irq_name, sizeof(mac->tx_irq_name), "%s tx",
dev->name); dev->name);
ret = request_irq(mac->tx->chan.irq, &pasemi_mac_tx_intr, IRQF_DISABLED, ret = request_irq(mac->tx->chan.irq, pasemi_mac_tx_intr, IRQF_DISABLED,
mac->tx_irq_name, mac->tx); mac->tx_irq_name, mac->tx);
if (ret) { if (ret) {
dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n", dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n",
@ -1227,7 +1227,7 @@ static int pasemi_mac_open(struct net_device *dev)
snprintf(mac->rx_irq_name, sizeof(mac->rx_irq_name), "%s rx", snprintf(mac->rx_irq_name, sizeof(mac->rx_irq_name), "%s rx",
dev->name); dev->name);
ret = request_irq(mac->rx->chan.irq, &pasemi_mac_rx_intr, IRQF_DISABLED, ret = request_irq(mac->rx->chan.irq, pasemi_mac_rx_intr, IRQF_DISABLED,
mac->rx_irq_name, mac->rx); mac->rx_irq_name, mac->rx);
if (ret) { if (ret) {
dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n", dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n",

View file

@ -2095,7 +2095,7 @@ static int pcnet32_open(struct net_device *dev)
int rc; int rc;
unsigned long flags; unsigned long flags;
if (request_irq(dev->irq, &pcnet32_interrupt, if (request_irq(dev->irq, pcnet32_interrupt,
lp->shared_irq ? IRQF_SHARED : 0, dev->name, lp->shared_irq ? IRQF_SHARED : 0, dev->name,
(void *)dev)) { (void *)dev)) {
return -EAGAIN; return -EAGAIN;

View file

@ -984,7 +984,7 @@ static int __devinit s6gmac_probe(struct platform_device *pdev)
pd->rx_dma = DMA_MASK_DMAC(i); pd->rx_dma = DMA_MASK_DMAC(i);
pd->rx_chan = DMA_INDEX_CHNL(i); pd->rx_chan = DMA_INDEX_CHNL(i);
pd->io = platform_get_resource(pdev, IORESOURCE_IO, 0)->start; pd->io = platform_get_resource(pdev, IORESOURCE_IO, 0)->start;
res = request_irq(dev->irq, &s6gmac_interrupt, 0, dev->name, dev); res = request_irq(dev->irq, s6gmac_interrupt, 0, dev->name, dev);
if (res) { if (res) {
printk(KERN_ERR DRV_PRMT "irq request failed: %d\n", dev->irq); printk(KERN_ERR DRV_PRMT "irq request failed: %d\n", dev->irq);
goto errirq; goto errirq;

View file

@ -973,7 +973,7 @@ sb1000_open(struct net_device *dev)
lp->rx_frame_id[1] = 0; lp->rx_frame_id[1] = 0;
lp->rx_frame_id[2] = 0; lp->rx_frame_id[2] = 0;
lp->rx_frame_id[3] = 0; lp->rx_frame_id[3] = 0;
if (request_irq(dev->irq, &sb1000_interrupt, 0, "sb1000", dev)) { if (request_irq(dev->irq, sb1000_interrupt, 0, "sb1000", dev)) {
return -EAGAIN; return -EAGAIN;
} }

View file

@ -2410,7 +2410,7 @@ static int sbmac_open(struct net_device *dev)
*/ */
__raw_readq(sc->sbm_isr); __raw_readq(sc->sbm_isr);
err = request_irq(dev->irq, &sbmac_intr, IRQF_SHARED, dev->name, dev); err = request_irq(dev->irq, sbmac_intr, IRQF_SHARED, dev->name, dev);
if (err) { if (err) {
printk(KERN_ERR "%s: unable to get IRQ %d\n", dev->name, printk(KERN_ERR "%s: unable to get IRQ %d\n", dev->name,
dev->irq); dev->irq);

View file

@ -335,7 +335,7 @@ static int __init seeq8005_probe1(struct net_device *dev, int ioaddr)
#if 0 #if 0
{ {
int irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005", dev); int irqval = request_irq(dev->irq, seeq8005_interrupt, 0, "seeq8005", dev);
if (irqval) { if (irqval) {
printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name, printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev->irq, irqval); dev->irq, irqval);
@ -367,7 +367,7 @@ static int seeq8005_open(struct net_device *dev)
struct net_local *lp = netdev_priv(dev); struct net_local *lp = netdev_priv(dev);
{ {
int irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005", dev); int irqval = request_irq(dev->irq, seeq8005_interrupt, 0, "seeq8005", dev);
if (irqval) { if (irqval) {
printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name, printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev->irq, irqval); dev->irq, irqval);

View file

@ -1016,7 +1016,7 @@ static int sh_eth_open(struct net_device *ndev)
pm_runtime_get_sync(&mdp->pdev->dev); pm_runtime_get_sync(&mdp->pdev->dev);
ret = request_irq(ndev->irq, &sh_eth_interrupt, ret = request_irq(ndev->irq, sh_eth_interrupt,
#if defined(CONFIG_CPU_SUBTYPE_SH7763) || defined(CONFIG_CPU_SUBTYPE_SH7764) #if defined(CONFIG_CPU_SUBTYPE_SH7763) || defined(CONFIG_CPU_SUBTYPE_SH7764)
IRQF_SHARED, IRQF_SHARED,
#else #else

View file

@ -1016,7 +1016,7 @@ sis900_open(struct net_device *net_dev)
/* Equalizer workaround Rule */ /* Equalizer workaround Rule */
sis630_set_eq(net_dev, sis_priv->chipset_rev); sis630_set_eq(net_dev, sis_priv->chipset_rev);
ret = request_irq(net_dev->irq, &sis900_interrupt, IRQF_SHARED, ret = request_irq(net_dev->irq, sis900_interrupt, IRQF_SHARED,
net_dev->name, net_dev); net_dev->name, net_dev);
if (ret) if (ret)
return ret; return ret;

View file

@ -1984,7 +1984,7 @@ static int __devinit smc911x_probe(struct net_device *dev)
#endif #endif
/* Grab the IRQ */ /* Grab the IRQ */
retval = request_irq(dev->irq, &smc911x_interrupt, retval = request_irq(dev->irq, smc911x_interrupt,
irq_flags, dev->name, dev); irq_flags, dev->name, dev);
if (retval) if (retval)
goto err_out; goto err_out;

View file

@ -1050,7 +1050,7 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
memset(netdev_priv(dev), 0, sizeof(struct smc_local)); memset(netdev_priv(dev), 0, sizeof(struct smc_local));
/* Grab the IRQ */ /* Grab the IRQ */
retval = request_irq(dev->irq, &smc_interrupt, 0, DRV_NAME, dev); retval = request_irq(dev->irq, smc_interrupt, 0, DRV_NAME, dev);
if (retval) { if (retval) {
printk("%s: unable to get IRQ %d (irqval=%d).\n", DRV_NAME, printk("%s: unable to get IRQ %d (irqval=%d).\n", DRV_NAME,
dev->irq, retval); dev->irq, retval);

View file

@ -2031,7 +2031,7 @@ static int __devinit smc_probe(struct net_device *dev, void __iomem *ioaddr,
} }
/* Grab the IRQ */ /* Grab the IRQ */
retval = request_irq(dev->irq, &smc_interrupt, irq_flags, dev->name, dev); retval = request_irq(dev->irq, smc_interrupt, irq_flags, dev->name, dev);
if (retval) if (retval)
goto err_out; goto err_out;

View file

@ -928,7 +928,7 @@ static int netdev_open(struct net_device *dev)
/* Do we ever need to reset the chip??? */ /* Do we ever need to reset the chip??? */
retval = request_irq(dev->irq, &intr_handler, IRQF_SHARED, dev->name, dev); retval = request_irq(dev->irq, intr_handler, IRQF_SHARED, dev->name, dev);
if (retval) if (retval)
return retval; return retval;

View file

@ -1022,7 +1022,7 @@ static int stmmac_open(struct net_device *dev)
} }
/* Request the IRQ lines */ /* Request the IRQ lines */
ret = request_irq(dev->irq, &stmmac_interrupt, ret = request_irq(dev->irq, stmmac_interrupt,
IRQF_SHARED, dev->name, dev); IRQF_SHARED, dev->name, dev);
if (unlikely(ret < 0)) { if (unlikely(ret < 0)) {
pr_err("%s: ERROR: allocating the IRQ %d (error: %d)\n", pr_err("%s: ERROR: allocating the IRQ %d (error: %d)\n",

View file

@ -191,7 +191,7 @@ static int sun3_82586_open(struct net_device *dev)
startrecv586(dev); startrecv586(dev);
sun3_enaint(); sun3_enaint();
ret = request_irq(dev->irq, &sun3_82586_interrupt,0,dev->name,dev); ret = request_irq(dev->irq, sun3_82586_interrupt,0,dev->name,dev);
if (ret) if (ret)
{ {
sun3_reset586(); sun3_reset586();

View file

@ -919,7 +919,7 @@ static int bigmac_open(struct net_device *dev)
struct bigmac *bp = netdev_priv(dev); struct bigmac *bp = netdev_priv(dev);
int ret; int ret;
ret = request_irq(dev->irq, &bigmac_interrupt, IRQF_SHARED, dev->name, bp); ret = request_irq(dev->irq, bigmac_interrupt, IRQF_SHARED, dev->name, bp);
if (ret) { if (ret) {
printk(KERN_ERR "BIGMAC: Can't order irq %d to go.\n", dev->irq); printk(KERN_ERR "BIGMAC: Can't order irq %d to go.\n", dev->irq);
return ret; return ret;

View file

@ -819,7 +819,7 @@ static int netdev_open(struct net_device *dev)
/* Do we need to reset the chip??? */ /* Do we need to reset the chip??? */
i = request_irq(dev->irq, &intr_handler, IRQF_SHARED, dev->name, dev); i = request_irq(dev->irq, intr_handler, IRQF_SHARED, dev->name, dev);
if (i) if (i)
return i; return i;

View file

@ -2184,7 +2184,7 @@ static int happy_meal_open(struct net_device *dev)
* into a single source which we register handling at probe time. * into a single source which we register handling at probe time.
*/ */
if ((hp->happy_flags & (HFLAG_QUATTRO|HFLAG_PCI)) != HFLAG_QUATTRO) { if ((hp->happy_flags & (HFLAG_QUATTRO|HFLAG_PCI)) != HFLAG_QUATTRO) {
if (request_irq(dev->irq, &happy_meal_interrupt, if (request_irq(dev->irq, happy_meal_interrupt,
IRQF_SHARED, dev->name, (void *)dev)) { IRQF_SHARED, dev->name, (void *)dev)) {
HMD(("EAGAIN\n")); HMD(("EAGAIN\n"));
printk(KERN_ERR "happy_meal(SBUS): Can't order irq %d to go.\n", printk(KERN_ERR "happy_meal(SBUS): Can't order irq %d to go.\n",

View file

@ -923,7 +923,7 @@ static int lance_open(struct net_device *dev)
STOP_LANCE(lp); STOP_LANCE(lp);
if (request_irq(dev->irq, &lance_interrupt, IRQF_SHARED, if (request_irq(dev->irq, lance_interrupt, IRQF_SHARED,
lancestr, (void *) dev)) { lancestr, (void *) dev)) {
printk(KERN_ERR "Lance: Can't get irq %d\n", dev->irq); printk(KERN_ERR "Lance: Can't get irq %d\n", dev->irq);
return -EAGAIN; return -EAGAIN;

View file

@ -807,7 +807,7 @@ static struct sunqec * __devinit get_qec(struct of_device *child)
qec_init_once(qecp, op); qec_init_once(qecp, op);
if (request_irq(op->irqs[0], &qec_interrupt, if (request_irq(op->irqs[0], qec_interrupt,
IRQF_SHARED, "qec", (void *) qecp)) { IRQF_SHARED, "qec", (void *) qecp)) {
printk(KERN_ERR "qec: Can't register irq.\n"); printk(KERN_ERR "qec: Can't register irq.\n");
goto fail; goto fail;

View file

@ -1248,7 +1248,7 @@ tc35815_open(struct net_device *dev)
* This is used if the interrupt line can turned off (shared). * This is used if the interrupt line can turned off (shared).
* See 3c503.c for an example of selecting the IRQ at config-time. * See 3c503.c for an example of selecting the IRQ at config-time.
*/ */
if (request_irq(dev->irq, &tc35815_interrupt, IRQF_SHARED, if (request_irq(dev->irq, tc35815_interrupt, IRQF_SHARED,
dev->name, dev)) dev->name, dev))
return -EAGAIN; return -EAGAIN;

View file

@ -420,7 +420,7 @@ static int bdx_hw_start(struct bdx_priv *priv)
GMAC_RX_FILTER_AM | GMAC_RX_FILTER_AB); GMAC_RX_FILTER_AM | GMAC_RX_FILTER_AB);
#define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI)?0:IRQF_SHARED) #define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI)?0:IRQF_SHARED)
if ((rc = request_irq(priv->pdev->irq, &bdx_isr_napi, BDX_IRQ_TYPE, if ((rc = request_irq(priv->pdev->irq, bdx_isr_napi, BDX_IRQ_TYPE,
ndev->name, ndev))) ndev->name, ndev)))
goto err_irq; goto err_irq;
bdx_enable_interrupts(priv); bdx_enable_interrupts(priv);

View file

@ -680,7 +680,7 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr)
/* The PCMCIA has already got the interrupt line and the io port, /* The PCMCIA has already got the interrupt line and the io port,
so no chance of anybody else getting it - MLP */ so no chance of anybody else getting it - MLP */
if (request_irq(dev->irq = irq, &tok_interrupt, 0, "ibmtr", dev) != 0) { if (request_irq(dev->irq = irq, tok_interrupt, 0, "ibmtr", dev) != 0) {
DPRINTK("Could not grab irq %d. Halting Token Ring driver.\n", DPRINTK("Could not grab irq %d. Halting Token Ring driver.\n",
irq); irq);
iounmap(t_mmio); iounmap(t_mmio);

View file

@ -596,7 +596,7 @@ static int streamer_open(struct net_device *dev)
rc=streamer_reset(dev); rc=streamer_reset(dev);
} }
if (request_irq(dev->irq, &streamer_interrupt, IRQF_SHARED, "lanstreamer", dev)) { if (request_irq(dev->irq, streamer_interrupt, IRQF_SHARED, "lanstreamer", dev)) {
return -EAGAIN; return -EAGAIN;
} }
#if STREAMER_DEBUG #if STREAMER_DEBUG

View file

@ -543,7 +543,7 @@ static int dmfe_open(struct DEVICE *dev)
DMFE_DBUG(0, "dmfe_open", 0); DMFE_DBUG(0, "dmfe_open", 0);
ret = request_irq(dev->irq, &dmfe_interrupt, ret = request_irq(dev->irq, dmfe_interrupt,
IRQF_SHARED, dev->name, dev); IRQF_SHARED, dev->name, dev);
if (ret) if (ret)
return ret; return ret;

View file

@ -506,7 +506,7 @@ tulip_open(struct net_device *dev)
tulip_init_ring (dev); tulip_init_ring (dev);
retval = request_irq(dev->irq, &tulip_interrupt, IRQF_SHARED, dev->name, dev); retval = request_irq(dev->irq, tulip_interrupt, IRQF_SHARED, dev->name, dev);
if (retval) if (retval)
goto free_ring; goto free_ring;
@ -1782,7 +1782,7 @@ static int tulip_resume(struct pci_dev *pdev)
return retval; return retval;
} }
if ((retval = request_irq(dev->irq, &tulip_interrupt, IRQF_SHARED, dev->name, dev))) { if ((retval = request_irq(dev->irq, tulip_interrupt, IRQF_SHARED, dev->name, dev))) {
printk (KERN_ERR "tulip: request_irq failed in resume\n"); printk (KERN_ERR "tulip: request_irq failed in resume\n");
return retval; return retval;
} }

View file

@ -461,7 +461,7 @@ static int uli526x_open(struct net_device *dev)
/* Initialize ULI526X board */ /* Initialize ULI526X board */
uli526x_init(dev); uli526x_init(dev);
ret = request_irq(dev->irq, &uli526x_interrupt, IRQF_SHARED, dev->name, dev); ret = request_irq(dev->irq, uli526x_interrupt, IRQF_SHARED, dev->name, dev);
if (ret) if (ret)
return ret; return ret;

View file

@ -639,7 +639,7 @@ static int netdev_open(struct net_device *dev)
iowrite32(0x00000001, ioaddr + PCIBusCfg); /* Reset */ iowrite32(0x00000001, ioaddr + PCIBusCfg); /* Reset */
netif_device_detach(dev); netif_device_detach(dev);
i = request_irq(dev->irq, &intr_handler, IRQF_SHARED, dev->name, dev); i = request_irq(dev->irq, intr_handler, IRQF_SHARED, dev->name, dev);
if (i) if (i)
goto out_err; goto out_err;

View file

@ -458,7 +458,7 @@ static int xircom_open(struct net_device *dev)
int retval; int retval;
enter("xircom_open"); enter("xircom_open");
printk(KERN_INFO "xircom cardbus adaptor found, registering as %s, using irq %i \n",dev->name,dev->irq); printk(KERN_INFO "xircom cardbus adaptor found, registering as %s, using irq %i \n",dev->name,dev->irq);
retval = request_irq(dev->irq, &xircom_interrupt, IRQF_SHARED, dev->name, dev); retval = request_irq(dev->irq, xircom_interrupt, IRQF_SHARED, dev->name, dev);
if (retval) { if (retval) {
leave("xircom_open - No IRQ"); leave("xircom_open - No IRQ");
return retval; return retval;

View file

@ -218,7 +218,7 @@ static struct z8530_dev *sv11_init(int iobase, int irq)
/* We want a fast IRQ for this device. Actually we'd like an even faster /* We want a fast IRQ for this device. Actually we'd like an even faster
IRQ ;) - This is one driver RtLinux is made for */ IRQ ;) - This is one driver RtLinux is made for */
if (request_irq(irq, &z8530_interrupt, IRQF_DISABLED, if (request_irq(irq, z8530_interrupt, IRQF_DISABLED,
"Hostess SV11", sv) < 0) { "Hostess SV11", sv) < 0) {
printk(KERN_WARNING "hostess: IRQ %d already in use.\n", irq); printk(KERN_WARNING "hostess: IRQ %d already in use.\n", irq);
goto err_irq; goto err_irq;

View file

@ -1028,7 +1028,7 @@ static int lmc_open(struct net_device *dev)
lmc_softreset (sc); lmc_softreset (sc);
/* Since we have to use PCI bus, this should work on x86,alpha,ppc */ /* Since we have to use PCI bus, this should work on x86,alpha,ppc */
if (request_irq (dev->irq, &lmc_interrupt, IRQF_SHARED, dev->name, dev)){ if (request_irq (dev->irq, lmc_interrupt, IRQF_SHARED, dev->name, dev)){
printk(KERN_WARNING "%s: could not get irq: %d\n", dev->name, dev->irq); printk(KERN_WARNING "%s: could not get irq: %d\n", dev->name, dev->irq);
lmc_trace(dev, "lmc_open irq failed out"); lmc_trace(dev, "lmc_open irq failed out");
return -EAGAIN; return -EAGAIN;

View file

@ -376,7 +376,7 @@ static int __init n2_run(unsigned long io, unsigned long irq,
} }
card->io = io; card->io = io;
if (request_irq(irq, &sca_intr, 0, devname, card)) { if (request_irq(irq, sca_intr, 0, devname, card)) {
printk(KERN_ERR "n2: could not allocate IRQ\n"); printk(KERN_ERR "n2: could not allocate IRQ\n");
n2_destroy_card(card); n2_destroy_card(card);
return(-EBUSY); return(-EBUSY);

View file

@ -1457,7 +1457,7 @@ got_type:
} }
err = -EAGAIN; err = -EAGAIN;
if (request_irq(dev->irq, &sdla_isr, 0, dev->name, dev)) if (request_irq(dev->irq, sdla_isr, 0, dev->name, dev))
goto fail; goto fail;
if (flp->type == SDLA_S507) { if (flp->type == SDLA_S507) {

View file

@ -266,7 +266,7 @@ static __init struct slvl_board *slvl_init(int iobase, int irq,
/* We want a fast IRQ for this device. Actually we'd like an even faster /* We want a fast IRQ for this device. Actually we'd like an even faster
IRQ ;) - This is one driver RtLinux is made for */ IRQ ;) - This is one driver RtLinux is made for */
if (request_irq(irq, &z8530_interrupt, IRQF_DISABLED, if (request_irq(irq, z8530_interrupt, IRQF_DISABLED,
"SeaLevel", dev) < 0) { "SeaLevel", dev) < 0) {
printk(KERN_WARNING "sealevel: IRQ %d already in use.\n", irq); printk(KERN_WARNING "sealevel: IRQ %d already in use.\n", irq);
goto err_request_irq; goto err_request_irq;

View file

@ -2817,7 +2817,7 @@ static int mwl8k_start(struct ieee80211_hw *hw)
struct mwl8k_priv *priv = hw->priv; struct mwl8k_priv *priv = hw->priv;
int rc; int rc;
rc = request_irq(priv->pdev->irq, &mwl8k_interrupt, rc = request_irq(priv->pdev->irq, mwl8k_interrupt,
IRQF_SHARED, MWL8K_NAME, hw); IRQF_SHARED, MWL8K_NAME, hw);
if (rc) { if (rc) {
printk(KERN_ERR "%s: failed to register IRQ handler\n", printk(KERN_ERR "%s: failed to register IRQ handler\n",
@ -3482,7 +3482,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
iowrite32(0, priv->regs + MWL8K_HIU_A2H_INTERRUPT_CLEAR_SEL); iowrite32(0, priv->regs + MWL8K_HIU_A2H_INTERRUPT_CLEAR_SEL);
iowrite32(0xffffffff, priv->regs + MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK); iowrite32(0xffffffff, priv->regs + MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK);
rc = request_irq(priv->pdev->irq, &mwl8k_interrupt, rc = request_irq(priv->pdev->irq, mwl8k_interrupt,
IRQF_SHARED, MWL8K_NAME, hw); IRQF_SHARED, MWL8K_NAME, hw);
if (rc) { if (rc) {
printk(KERN_ERR "%s: failed to register IRQ handler\n", printk(KERN_ERR "%s: failed to register IRQ handler\n",

View file

@ -181,7 +181,7 @@ prism54_probe(struct pci_dev *pdev, const struct pci_device_id *id)
isl38xx_disable_interrupts(priv->device_base); isl38xx_disable_interrupts(priv->device_base);
/* request for the interrupt before uploading the firmware */ /* request for the interrupt before uploading the firmware */
rvalue = request_irq(pdev->irq, &islpci_interrupt, rvalue = request_irq(pdev->irq, islpci_interrupt,
IRQF_SHARED, ndev->name, priv); IRQF_SHARED, ndev->name, priv);
if (rvalue) { if (rvalue) {

View file

@ -660,7 +660,7 @@ static int xemaclite_open(struct net_device *dev)
xemaclite_set_mac_address(lp, dev->dev_addr); xemaclite_set_mac_address(lp, dev->dev_addr);
/* Grab the IRQ */ /* Grab the IRQ */
retval = request_irq(dev->irq, &xemaclite_interrupt, 0, dev->name, dev); retval = request_irq(dev->irq, xemaclite_interrupt, 0, dev->name, dev);
if (retval) { if (retval) {
dev_err(&lp->ndev->dev, "Could not allocate interrupt %d\n", dev_err(&lp->ndev->dev, "Could not allocate interrupt %d\n",
dev->irq); dev->irq);

View file

@ -92,7 +92,7 @@ static unsigned short known_revisions[] =
static int xtsonic_open(struct net_device *dev) static int xtsonic_open(struct net_device *dev)
{ {
if (request_irq(dev->irq,&sonic_interrupt,IRQF_DISABLED,"sonic",dev)) { if (request_irq(dev->irq,sonic_interrupt,IRQF_DISABLED,"sonic",dev)) {
printk(KERN_ERR "%s: unable to get IRQ %d.\n", printk(KERN_ERR "%s: unable to get IRQ %d.\n",
dev->name, dev->irq); dev->name, dev->irq);
return -EAGAIN; return -EAGAIN;

View file

@ -579,7 +579,7 @@ static int yellowfin_open(struct net_device *dev)
/* Reset the chip. */ /* Reset the chip. */
iowrite32(0x80000000, ioaddr + DMACtrl); iowrite32(0x80000000, ioaddr + DMACtrl);
ret = request_irq(dev->irq, &yellowfin_interrupt, IRQF_SHARED, dev->name, dev); ret = request_irq(dev->irq, yellowfin_interrupt, IRQF_SHARED, dev->name, dev);
if (ret) if (ret)
return ret; return ret;

View file

@ -169,7 +169,7 @@ static int znet_request_resources (struct net_device *dev)
{ {
struct znet_private *znet = netdev_priv(dev); struct znet_private *znet = netdev_priv(dev);
if (request_irq (dev->irq, &znet_interrupt, 0, "ZNet", dev)) if (request_irq (dev->irq, znet_interrupt, 0, "ZNet", dev))
goto failed; goto failed;
if (request_dma (znet->rx_dma, "ZNet rx")) if (request_dma (znet->rx_dma, "ZNet rx"))
goto free_irq; goto free_irq;