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>
This commit is contained in:
Guennadi Liakhovetski 2008-10-11 15:07:16 -07:00 коммит произвёл David S. Miller
Родитель 20501a6981
Коммит f3073ac767
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -722,6 +722,9 @@ static void smc911x_phy_detect(struct net_device *dev)
break;
}
}
if (phyaddr < 32)
/* Found an external PHY */
break;
}
default:
/* Internal media only */