Skip to content
Commit 85028015 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

phy: ti: am654: Fix a leak in serdes_am654_probe()



If devm_phy_create() fails then we need to call of_clk_del_provider(node)
to undo the call to of_clk_add_provider().

Fixes: 71e2f5c5 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200905124648.GA183976@mwanda


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent ad7a7aca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment