r6040: move down second PHY detection to r6040_init_one
authorMark Kelly <mark@bifferos.com>
Thu, 20 Aug 2009 01:26:20 +0000 (01:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2009 02:16:28 +0000 (19:16 -0700)
commite03f614af7811f9d089862a8700e683dcc6963c6
treefe3601dd84d13d2d4d99b03390caae588ba83bc5
parentd516478ff67b2abb2f3ecc998a598576d92b0b5e
r6040: move down second PHY detection to r6040_init_one

Instead of fully initializing an unusable second r6040
device, perform the PHY detection earlier and bail out
in r6040_init_one when we could not read the PHY identifier.

Signed-off-by: Mark Kelly <mark@bifferos.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r6040.c