Skip to contentSkip to conversation

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

PATCH Superseded Chuhong Yuan 1 participant 1 message Nov 1, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu: ipu-v3: prg: add missed clk_disable_unprepare in remove

The driver forgets to disable and unprepare clks when remove. Add the calls to clk_disable_unprepare to fix the problem.

---
 drivers/gpu/ipu-v3/ipu-prg.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/ipu-v3/ipu-prg.c +2 -0
index 196797c1b4b3..6ae6d634c983 100644
@@ -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;
 }
 
Signature · 1 line
2.23.0