diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-09-05 15:46:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-07 09:02:50 +0300 |
commit | fdf8212f0260a27590aa7356b8da026943630548 (patch) | |
tree | d4fe75cb17d722c3f6ba0197f3eea24289829d53 /drivers/pinctrl/mvebu | |
parent | 9f6c717ffa4716ecdd02b7f913d663af317da2a4 (diff) | |
download | linux-fdf8212f0260a27590aa7356b8da026943630548.tar.xz |
phy: ti: am654: Fix a leak in serdes_am654_probe()
[ Upstream commit 850280156f6421a404f2351bee07a0e7bedfd4c6 ]
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: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200905124648.GA183976@mwanda
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pinctrl/mvebu')
0 files changed, 0 insertions, 0 deletions