ath79: ag71xx-mdio: get reset control using devm api
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
parent
a4eef43a12
commit
f92bbdcc93
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ static int ag71xx_mdio_probe(struct platform_device *pdev)
|
||||||
if (!mii_bus)
|
if (!mii_bus)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
am->mdio_reset = of_reset_control_get_exclusive(np, "mdio");
|
am->mdio_reset = devm_reset_control_get_exclusive(amdev, "mdio");
|
||||||
builtin_switch = of_property_read_bool(np, "builtin-switch");
|
builtin_switch = of_property_read_bool(np, "builtin-switch");
|
||||||
|
|
||||||
mii_bus->name = "ag71xx_mdio";
|
mii_bus->name = "ag71xx_mdio";
|
||||||
|
|
Loading…
Reference in a new issue