diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2022-04-15 16:03:10 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-04-20 11:12:44 +0200 |
commit | 2c8045d48dee703ad8eab2be7d6547765a89c069 (patch) | |
tree | bca1222ce92af4ac3481464d63d7afb5fb74c160 /drivers/hwmon | |
parent | phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe (diff) | |
download | linux-2c8045d48dee703ad8eab2be7d6547765a89c069.tar.xz linux-2c8045d48dee703ad8eab2be7d6547765a89c069.zip |
phy: amlogic: fix error path in phy_g12a_usb3_pcie_probe()
If clk_prepare_enable() fails we call clk_disable_unprepare()
in the error path what results in a warning that the clock
is disabled and unprepared already.
And if we fail later in phy_g12a_usb3_pcie_probe() then we
bail out w/o calling clk_disable_unprepare().
This patch fixes both errors.
Fixes: 36077e16c050 ("phy: amlogic: Add Amlogic G12A USB3 + PCIE Combo PHY Driver")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/8e416f95-1084-ee28-860e-7884f7fa2e32@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions