diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2018-12-15 15:35:37 +0800 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-03-05 03:02:34 +0100 |
commit | f92bbdcc93d9c25d14112da57c5aa63169a4840f (patch) | |
tree | 561b7609573038dc64040ad69acfc057f7a14fce | |
parent | a4eef43a120d51bb5386730b820704e5cb5e1acf (diff) | |
download | upstream-f92bbdcc93d9c25d14112da57c5aa63169a4840f.tar.gz upstream-f92bbdcc93d9c25d14112da57c5aa63169a4840f.tar.bz2 upstream-f92bbdcc93d9c25d14112da57c5aa63169a4840f.zip |
ath79: ag71xx-mdio: get reset control using devm api
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
-rw-r--r-- | target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c index 58aef74872..a58ee3346b 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c @@ -190,7 +190,7 @@ static int ag71xx_mdio_probe(struct platform_device *pdev) if (!mii_bus) 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"); mii_bus->name = "ag71xx_mdio"; |