Searched refs:mii_np (Results 1 – 2 of 2) sorted by relevance
2594 struct device_node *mii_np; in emac_dt_mdio_probe() local2597 mii_np = of_get_child_by_name(dev->ofdev->dev.of_node, "mdio"); in emac_dt_mdio_probe()2598 if (!mii_np) { in emac_dt_mdio_probe()2603 if (!of_device_is_available(mii_np)) { in emac_dt_mdio_probe()2621 res = of_mdiobus_register(dev->mii_bus, mii_np); in emac_dt_mdio_probe()2628 of_node_put(mii_np); in emac_dt_mdio_probe()
668 struct device_node *mii_np; in mtk_mdio_init() local671 mii_np = of_get_child_by_name(eth->dev->of_node, "mdio-bus"); in mtk_mdio_init()672 if (!mii_np) { in mtk_mdio_init()677 if (!of_device_is_available(mii_np)) { in mtk_mdio_init()695 snprintf(eth->mii_bus->id, MII_BUS_ID_SIZE, "%pOFn", mii_np); in mtk_mdio_init()696 ret = of_mdiobus_register(eth->mii_bus, mii_np); in mtk_mdio_init()699 of_node_put(mii_np); in mtk_mdio_init()