You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/ar71xx/patches-2.6.28/801-ag71xx_rename_mii_bus_d...

12 lines
396 B
Diff

--- a/drivers/net/ag71xx/ag71xx_mdio.c
+++ b/drivers/net/ag71xx/ag71xx_mdio.c
@@ -160,7 +160,7 @@ static int __init ag71xx_mdio_probe(stru
am->mii_bus.reset = ag71xx_mdio_reset;
am->mii_bus.irq = am->mii_irq;
am->mii_bus.priv = am;
- am->mii_bus.dev = &pdev->dev;
+ am->mii_bus.parent = &pdev->dev;
snprintf(am->mii_bus.id, MII_BUS_ID_SIZE, "%x", 0);
pdata = pdev->dev.platform_data;