niu: Determine the # of ports from the card's VPD data
authorMatheos Worku <matheos.worku@sun.com>
Mon, 12 May 2008 10:10:59 +0000 (03:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 10:10:59 +0000 (03:10 -0700)
commitf9af857489cc19ee3acd0d5248dca7d243e353a5
treef3e57dd73eac47a651027182c823d9203000df64
parent36ca34cc3b8335eb1fe8bd9a1d0a2592980c3f02
niu: Determine the # of ports from the card's VPD data

Determine the number of physical ports from the card's VPD data.
Previous fix failed on Maramba platform which doesn't have the
"board-model" property. This fix uses the "model" property which
exists on all cards and Neptune based motherboards.

cstyle cleanup included.

Signed-off-by: Matheos Worku <matheos.worku@sun.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c
drivers/net/niu.h