diff options
author | Joe Perches <joe@perches.com> | 2009-11-19 02:29:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-19 02:29:17 -0500 |
commit | a0607fd3a25ba1848a63a0d925e36d914735ab47 (patch) | |
tree | c9bbdf40c9ded30af844e80870a7180ce0c0cb5c /drivers/net/pasemi_mac.c | |
parent | 2939e275994977b6c9eb7fd082b7b0caa35b96b0 (diff) |
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>
Diffstat (limited to 'drivers/net/pasemi_mac.c')
-rw-r--r-- | drivers/net/pasemi_mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c index c254a7f5b9f5..1673eb045e1e 100644 --- a/drivers/net/pasemi_mac.c +++ b/drivers/net/pasemi_mac.c | |||
@@ -1216,7 +1216,7 @@ static int pasemi_mac_open(struct net_device *dev) | |||
1216 | snprintf(mac->tx_irq_name, sizeof(mac->tx_irq_name), "%s tx", | 1216 | snprintf(mac->tx_irq_name, sizeof(mac->tx_irq_name), "%s tx", |
1217 | dev->name); | 1217 | dev->name); |
1218 | 1218 | ||
1219 | ret = request_irq(mac->tx->chan.irq, &pasemi_mac_tx_intr, IRQF_DISABLED, | 1219 | ret = request_irq(mac->tx->chan.irq, pasemi_mac_tx_intr, IRQF_DISABLED, |
1220 | mac->tx_irq_name, mac->tx); | 1220 | mac->tx_irq_name, mac->tx); |
1221 | if (ret) { | 1221 | if (ret) { |
1222 | dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n", | 1222 | 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) | |||
1227 | snprintf(mac->rx_irq_name, sizeof(mac->rx_irq_name), "%s rx", | 1227 | snprintf(mac->rx_irq_name, sizeof(mac->rx_irq_name), "%s rx", |
1228 | dev->name); | 1228 | dev->name); |
1229 | 1229 | ||
1230 | ret = request_irq(mac->rx->chan.irq, &pasemi_mac_rx_intr, IRQF_DISABLED, | 1230 | ret = request_irq(mac->rx->chan.irq, pasemi_mac_rx_intr, IRQF_DISABLED, |
1231 | mac->rx_irq_name, mac->rx); | 1231 | mac->rx_irq_name, mac->rx); |
1232 | if (ret) { | 1232 | if (ret) { |
1233 | dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n", | 1233 | dev_err(&mac->pdev->dev, "request_irq of irq %d failed: %d\n", |