Skip to contentSkip to conversation

smc91x driver: Fix bug - Print warning only in interrupt mode.

PATCH New Bryan Wu 1 participant 1 message Mar 26, 2008

Subsystems (2)
lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 smc91x driver: Fix bug - Print warning only in interrupt mode.

From: Sonic Zhang <[email protected]>

http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3956

---
 drivers/net/smc91x.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/smc91x.c +2 -0
index 4020e9e..63a54e2 100644
@@ -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);
 
Signature · 1 line
1.5.4.3