Skip to contentSkip to conversation

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

PATCH New Chuhong Yuan 1 participant 1 message Nov 18, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

This driver forgets to call pm_runtime_disable and clk_disable_unprepare in remove.
Add the calls to fix it.

---
Changes in v2:
- Add the missed pm_runtime_disable.

 drivers/gpu/ipu-v3/ipu-prg.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/ipu-v3/ipu-prg.c +3 -0
index 196797c1b4b3..897da605da55 100644
@@ -430,6 +430,9 @@ static int ipu_prg_remove(struct platform_device *pdev)
 	list_del(&prg->list);
 	mutex_unlock(&ipu_prg_list_mutex);
 
+	pm_runtime_disable(&pdev->dev);
+	clk_disable_unprepare(prg->clk_axi);
+	clk_disable_unprepare(prg->clk_ipg);
 	return 0;
 }
 
Signature · 1 line
2.24.0