diff mbox series

gpu: ipu-v3: prg: add missed clk_disable_unprepare in remove

Message ID 20191101143801.17774-1-hslester96@gmail.com (mailing list archive)
State New, archived
Headers show
Series gpu: ipu-v3: prg: add missed clk_disable_unprepare in remove | expand

Commit Message

Chuhong Yuan Nov. 1, 2019, 2:38 p.m. UTC
The driver forgets to disable and unprepare clks when remove.
Add the calls to clk_disable_unprepare to fix the problem.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
---
 drivers/gpu/ipu-v3/ipu-prg.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/ipu-v3/ipu-prg.c b/drivers/gpu/ipu-v3/ipu-prg.c
index 196797c1b4b3..6ae6d634c983 100644
--- a/drivers/gpu/ipu-v3/ipu-prg.c
+++ b/drivers/gpu/ipu-v3/ipu-prg.c
@@ -430,6 +430,8 @@  static int ipu_prg_remove(struct platform_device *pdev)
 	list_del(&prg->list);
 	mutex_unlock(&ipu_prg_list_mutex);
 
+	clk_disable_unprepare(prg->clk_axi);
+	clk_disable_unprepare(prg->clk_ipg);
 	return 0;
 }