]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30cf399fdc4230109e4aa85ece75099e58c35b24
treefe3601dd84d13d2d4d99b03390caae588ba83bc5
parent2bba4a563e4cda9410bdeeef66a82ecf7971609a
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