projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a376e79
)
smc91x driver: fix bug: print warning only in interrupt mode
author
Sonic Zhang
<
[email protected]
>
Fri, 11 Apr 2008 04:30:37 +0000
(21:30 -0700)
committer
Jeff Garzik
<
[email protected]
>
Sat, 12 Apr 2008 08:39:10 +0000
(
04:39
-0400)
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3956
Signed-off-by: Sonic Zhang <
[email protected]
>
Signed-off-by: Bryan Wu <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Jeff Garzik <
[email protected]
>
drivers/net/smc91x.c
patch
|
blob
|
history
diff --git
a/drivers/net/smc91x.c
b/drivers/net/smc91x.c
index 4020e9e955b306493c3a4fa3e3001e4353563a98..63a54e29d56331c24a160d644ba6b57626c8c219 100644
(file)
--- a/
drivers/net/smc91x.c
+++ b/
drivers/net/smc91x.c
@@
-1326,9
+1326,11
@@
static irqreturn_t smc_interrupt(int irq, void *dev_id)
SMC_SET_INT_MASK(mask);
spin_unlock(&lp->lock);
+#ifndef CONFIG_NET_POLL_CONTROLLER
if (timeout == MAX_IRQ_LOOPS)
PRINTK("%s: spurious interrupt (mask = 0x%02x)\n",
dev->name, mask);
+#endif
DBG(3, "%s: Interrupt done (%d loops)\n",
dev->name, MAX_IRQ_LOOPS - timeout);