diff options
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r-- | drivers/net/sh_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 1a04814291c1..a24bb68887ab 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c | |||
@@ -1140,7 +1140,7 @@ static int sh_mdio_init(struct net_device *ndev, int id) | |||
1140 | 1140 | ||
1141 | /* Hook up MII support for ethtool */ | 1141 | /* Hook up MII support for ethtool */ |
1142 | mdp->mii_bus->name = "sh_mii"; | 1142 | mdp->mii_bus->name = "sh_mii"; |
1143 | mdp->mii_bus->dev = &ndev->dev; | 1143 | mdp->mii_bus->parent = &ndev->dev; |
1144 | mdp->mii_bus->id[0] = id; | 1144 | mdp->mii_bus->id[0] = id; |
1145 | 1145 | ||
1146 | /* PHY IRQ */ | 1146 | /* PHY IRQ */ |
@@ -1166,7 +1166,7 @@ out_free_irq: | |||
1166 | kfree(mdp->mii_bus->irq); | 1166 | kfree(mdp->mii_bus->irq); |
1167 | 1167 | ||
1168 | out_free_bus: | 1168 | out_free_bus: |
1169 | kfree(mdp->mii_bus); | 1169 | free_mdio_bitbang(mdp->mii_bus); |
1170 | 1170 | ||
1171 | out_free_bitbang: | 1171 | out_free_bitbang: |
1172 | kfree(bitbang); | 1172 | kfree(bitbang); |