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:

committed by
David S. Miller

parent
2939e27599
commit
a0607fd3a2
@@ -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
|
||||
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) {
|
||||
printk(KERN_WARNING "hostess: IRQ %d already in use.\n", irq);
|
||||
goto err_irq;
|
||||
|
@@ -1028,7 +1028,7 @@ static int lmc_open(struct net_device *dev)
|
||||
lmc_softreset (sc);
|
||||
|
||||
/* 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);
|
||||
lmc_trace(dev, "lmc_open irq failed out");
|
||||
return -EAGAIN;
|
||||
|
@@ -376,7 +376,7 @@ static int __init n2_run(unsigned long io, unsigned long irq,
|
||||
}
|
||||
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");
|
||||
n2_destroy_card(card);
|
||||
return(-EBUSY);
|
||||
|
@@ -1457,7 +1457,7 @@ got_type:
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
if (flp->type == SDLA_S507) {
|
||||
|
@@ -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
|
||||
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) {
|
||||
printk(KERN_WARNING "sealevel: IRQ %d already in use.\n", irq);
|
||||
goto err_request_irq;
|
||||
|
Reference in New Issue
Block a user