of_mdio_find_bus
Prev | PHY Support | Next

## Name

of_mdio_find_bus — Given an mii_bus node, find the mii_bus.

## Synopsis

`struct mii_bus * of_mdio_find_bus (` | struct device_node * mdio_bus_np`)`;

## Arguments

`mdio_bus_np`

  Pointer to the mii_bus.

## Description

Returns a pointer to the mii_bus, or NULL if none found.

Because the association of a device_node and mii_bus is made via `of_mdiobus_register`, the mii_bus cannot be found before it is registered with `of_mdiobus_register`.

Prev | Up | Next
mdiobus_alloc_size | Home | mdiobus_register