Skip to content

Commit

Permalink
smc91x: fix compile error when SMC_DEBUG >= 2
Browse files Browse the repository at this point in the history
When SMC_DEBUG >= 2, we hit the following compilation error:

drivers/net/ethernet/smsc/smc91x.c:85:0:
drivers/net/ethernet/smsc/smc91x.c: In function ‘smc_findirq’:
drivers/net/ethernet/smsc/smc91x.c:1784:9: error: ‘dev’ undeclared (first use in this function)
  DBG(2, dev, "%s: %s\n", CARDNAME, __func__);
         ^
Fix it by passing in the appropriate netdev pointer.

Signed-off-by: Zi Shen Lim <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
zlim authored and davem330 committed Apr 23, 2014
1 parent 7b07bd4 commit 702b346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/smsc/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ static int smc_findirq(struct smc_local *lp)
int timeout = 20;
unsigned long cookie;

DBG(2, dev, "%s: %s\n", CARDNAME, __func__);
DBG(2, lp->dev, "%s: %s\n", CARDNAME, __func__);

cookie = probe_irq_on();

Expand Down

0 comments on commit 702b346

Please sign in to comment.