]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
SMC91x: Fix compilation on some platforms.
authorDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 08:04:24 +0000 (00:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 08:19:31 +0000 (00:19 -0800)
commit55c8eb6c8eaa5009eed1557b296da5d4ea9c369a
tree1bdd736112e6ace457a447e1dc43f33188f1eb83
parent0856f93958c488f0cc656be53c26dfd20663bdb3
SMC91x: Fix compilation on some platforms.

This reverts 51ac3beffd4afaea4350526cf01fe74aaff25eff ('SMC91x: delete
unused local variable "lp"') and adds __maybe_unused markers to these
(potentially) unused variables.

The issue is that in some configurations SMC_IO_SHIFT evaluates
to '(lp->io_shift)', but in some others it's plain '0'.

Based upon a build failure report from Manuel Lauss.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smc91x.c