Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[firefly-linux-kernel-4.4.55.git] / drivers / of / of_mdio.c
index 483c0adcad87d4701b866d6934137e34a5c38ed9..2574abde8d995d2e704f0852bc7a645452e13cd9 100644 (file)
@@ -45,6 +45,8 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
                for (i=0; i<PHY_MAX_ADDR; i++)
                        mdio->irq[i] = PHY_POLL;
 
+       mdio->dev.of_node = np;
+
        /* Register the MDIO bus */
        rc = mdiobus_register(mdio);
        if (rc)