Commit 6905d921 authored by David Brownell's avatar David Brownell Committed by Kevin Hilman

davinci_emac: parent mdio bus correctly

Parent the MII bus properly:  it's a child of the EMAC device,
not a free-standing beastie.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 044139ea
...@@ -2740,6 +2740,8 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev) ...@@ -2740,6 +2740,8 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
emac_mii->reset = emac_mii_reset, emac_mii->reset = emac_mii_reset,
emac_mii->irq = mii_irqs, emac_mii->irq = mii_irqs,
emac_mii->phy_mask = ~(EMAC_EVM_PHY_MASK); emac_mii->phy_mask = ~(EMAC_EVM_PHY_MASK);
emac_mii->parent = &pdev->dev;
/* Base address initialisation for MDIO */ /* Base address initialisation for MDIO */
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mdio_regs"); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mdio_regs");
if (!res) { if (!res) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment