]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36712306bc193c0774fee5803a85ed58ebd2d7fc
tree55823bca31a2c25d9985a40035390dfd1aa6c57b
parent1248bf9a2bc4c2dc99025f7bd53f2c4d8f2704e1
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: 0db86ac1cf03 ("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