diff options
author | Guennadi Liakhovetski <lg@denx.de> | 2008-10-11 18:07:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-11 18:07:16 -0400 |
commit | f3073ac76755abd63b1d4c3d145f4c15b65b5355 (patch) | |
tree | 37ac563a2b495615e00b41de4ef4af39c9a95ad4 | |
parent | 20501a69818827884b4381cdcedefdb5e7892915 (diff) |
smc911x: Fix external PHY detection
If an external PHY is found the driver falls through to the default
case in the switch and overwrites the PHY ID. Add the missing break.
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/smc911x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 02cc064c2c8b..3d19d00e8eec 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c | |||
@@ -722,6 +722,9 @@ static void smc911x_phy_detect(struct net_device *dev) | |||
722 | break; | 722 | break; |
723 | } | 723 | } |
724 | } | 724 | } |
725 | if (phyaddr < 32) | ||
726 | /* Found an external PHY */ | ||
727 | break; | ||
725 | } | 728 | } |
726 | default: | 729 | default: |
727 | /* Internal media only */ | 730 | /* Internal media only */ |