net: Fix sungem_phy sharing.
Since sungem_phy is used by multiple, unrelated, drivers make it build as a real module under drivers/net. depmod will pick up the symbol dependency and make sure sungem_phy.ko gets loaded any time sungem.ko or spider_net.ko is loaded. Tested-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -196,7 +196,7 @@ spider_net_setup_aneg(struct spider_net_card *card)
|
||||
if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF))
|
||||
advertise |= SUPPORTED_1000baseT_Half;
|
||||
|
||||
mii_phy_probe(phy, phy->mii_id);
|
||||
sungem_phy_probe(phy, phy->mii_id);
|
||||
phy->def->ops->setup_aneg(phy, advertise);
|
||||
|
||||
}
|
||||
@@ -2120,7 +2120,7 @@ spider_net_setup_phy(struct spider_net_card *card)
|
||||
unsigned short id;
|
||||
id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR);
|
||||
if (id != 0x0000 && id != 0xffff) {
|
||||
if (!mii_phy_probe(phy, phy->mii_id)) {
|
||||
if (!sungem_phy_probe(phy, phy->mii_id)) {
|
||||
pr_info("Found %s.\n", phy->def->name);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user