]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvmdio: disable/unprepare clocks in EPROBE_DEFER case
authorTobias Jordan <Tobias.Jordan@elektrobit.com>
Wed, 6 Dec 2017 14:23:23 +0000 (15:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 18:40:23 +0000 (13:40 -0500)
commit0b5ed6c3d46ae3ab9ddc205536db06dc4841e612
tree5e734051fef85cfb16a7b8aeacc4487e1305ef2b
parent6bc530cd1fffa9359d8e8ef9960edb5b5a80f420
net: mvmdio: disable/unprepare clocks in EPROBE_DEFER case

add appropriate calls to clk_disable_unprepare() by jumping to out_mdio
in case orion_mdio_probe() returns -EPROBE_DEFER.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: 47bd52d1c934 ("net: mvmdio: get and enable optional clock")
Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvmdio.c