diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2017-06-12 23:55:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 12:56:42 -0400 |
commit | d396e84c56047b303cac378dde4b2e5cc430b336 (patch) | |
tree | f9ed8ae00f7435c3be2237bdad8e1cde780870e2 /drivers/of | |
parent | 61d3e1d9bc2a1910d773cbf4ed6f587a7a6166b5 (diff) |
mdio_bus: handle only single PHY reset GPIO
Commit 4c5e7a2c0501 ("dt-bindings: mdio: Clarify binding document")
declared that a MDIO reset GPIO property should have only a single GPIO
reference/specifier, however the supporting code was left intact, still
burdening the kernel with now apparently useless loops -- get rid of them.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/of_mdio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c index 7e4c80f9b6cd..9596be9a49d0 100644 --- a/drivers/of/of_mdio.c +++ b/drivers/of/of_mdio.c @@ -226,7 +226,6 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) /* Get bus level PHY reset GPIO details */ mdio->reset_delay_us = DEFAULT_GPIO_RESET_DELAY; of_property_read_u32(np, "reset-delay-us", &mdio->reset_delay_us); - mdio->num_reset_gpios = of_gpio_named_count(np, "reset-gpios"); /* Register the MDIO bus */ rc = mdiobus_register(mdio); |