r6040: check for absent PHY
authorFlorian Fainelli <florian@openwrt.org>
Mon, 4 May 2009 20:30:01 +0000 (20:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2009 19:29:45 +0000 (12:29 -0700)
commitc8014fe1d4548da8b9ea54730852c48a7117b03f
treeadc1d1cd7dcab92c35bb2e10ad9c5df70882115f
parentaee64faf236815e0f337408892c01b373cd340f3
r6040: check for absent PHY

Some devices have two R6040 MACs but the second one
is not wired to any PHY, therefore the interface is
just unusable. Warn the user about that and prevent
device from registering.

Tested-by: bifferos <bifferos@yahoo.co.uk>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r6040.c