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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:45 +0000 (10:19 +0200)
commit80016f31549d393aa5d2fd7ceacfcf15af7ca8b5
tree72f751d3a8cd17a7777282132d1e3933f34a6f12
parent403db45891494a7ea7842ba34636260ab9bdaa60
net: ag71xx: add missed clk_disable_unprepare in error path of probe

[ Upstream commit befc113c56a76ae7be3986034a0e476d3385e265 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/atheros/ag71xx.c