[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191204072540.1452-1-hslester96@gmail.com>
Date: Wed, 4 Dec 2019 15:25:40 +0800
From: Chuhong Yuan <hslester96@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Kishon Vijay Abraham I <kishon@...com>,
Roger Quadros <rogerq@...com>, linux-kernel@...r.kernel.org,
Chuhong Yuan <hslester96@...il.com>
Subject: [PATCH] phy: ti-pipe3: fix missed clk_disable_unprepare in remove
The driver calls clk_prepare_enable in probe but forgets to call
clk_disable_unprepare in remove.
Add the missed call to fix it.
Signed-off-by: Chuhong Yuan <hslester96@...il.com>
---
drivers/phy/ti/phy-ti-pipe3.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/phy/ti/phy-ti-pipe3.c b/drivers/phy/ti/phy-ti-pipe3.c
index edd6859afba8..19fd1005a440 100644
--- a/drivers/phy/ti/phy-ti-pipe3.c
+++ b/drivers/phy/ti/phy-ti-pipe3.c
@@ -850,6 +850,12 @@ static int ti_pipe3_probe(struct platform_device *pdev)
static int ti_pipe3_remove(struct platform_device *pdev)
{
+ struct ti_pipe3 *phy = platform_get_drvdata(pdev);
+
+ if (phy->mode == PIPE3_MODE_SATA) {
+ clk_disable_unprepare(phy->refclk);
+ phy->sata_refclk_enabled = false;
+ }
pm_runtime_disable(&pdev->dev);
return 0;
--
2.24.0
Powered by blists - more mailing lists