smc91x: fix compile error when SMC_DEBUG >= 2
authorZi Shen Lim <zlim.lnx@gmail.com>
Sat, 19 Apr 2014 03:47:30 +0000 (20:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 01:19:35 +0000 (21:19 -0400)
commit702b3468c9eed1495067f6af2094372d75b9b23b
tree992f623af9ffd2c05c320679809e0eae0fde347d
parent7b07bd4e5187e8553d7776f5225e19f00b9fb863
smc91x: fix compile error when SMC_DEBUG >= 2

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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc91x.c