net: ag71xx: add missed clk_disable_unprepare in error path of probe
authorHuang Guobin <huangguobin4@huawei.com>
Mon, 20 Jul 2020 01:46:14 +0000 (21:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 01:37:38 +0000 (18:37 -0700)
commitbefc113c56a76ae7be3986034a0e476d3385e265
tree55823bca31a2c25d9985a40035390dfd1aa6c57b
parentae372cb1750f6c95370f92fe5f5620e0954663ba
net: ag71xx: add missed clk_disable_unprepare in error path of probe

The ag71xx_mdio_probe() forgets to call clk_disable_unprepare() when
of_reset_control_get_exclusive() failed. Add the missed call to fix it.

Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Huang Guobin <huangguobin4@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/ag71xx.c