Re: [PATCH] smc91x: fix compile error when SMC_DEBUG >= 2

From: David Miller
Date: Tue Apr 22 2014 - 21:21:30 EST


From: Zi Shen Lim <zlim.lnx@xxxxxxxxx>
Date: Fri, 18 Apr 2014 20:47:30 -0700

> 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 <zlim.lnx@xxxxxxxxx>

Applied, thanks.