[v2] gpu: ipu-v3: prg: add missed operations in remove
diff mbox series

Message ID 20191118080914.30691-1-hslester96@gmail.com
State New
Headers show
  • [v2] gpu: ipu-v3: prg: add missed operations in remove
Related show

Commit Message

Chuhong Yuan Nov. 18, 2019, 8:09 a.m. UTC
This driver forgets to call pm_runtime_disable and clk_disable_unprepare
in remove.
Add the calls to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Changes in v2:
  - Add the missed pm_runtime_disable.

 drivers/gpu/ipu-v3/ipu-prg.c | 3 +++
 1 file changed, 3 insertions(+)

diff mbox series

diff --git a/drivers/gpu/ipu-v3/ipu-prg.c b/drivers/gpu/ipu-v3/ipu-prg.c
index 196797c1b4b3..897da605da55 100644
--- a/drivers/gpu/ipu-v3/ipu-prg.c
+++ b/drivers/gpu/ipu-v3/ipu-prg.c
@@ -430,6 +430,9 @@  static int ipu_prg_remove(struct platform_device *pdev)
+	pm_runtime_disable(&pdev->dev);
+	clk_disable_unprepare(prg->clk_axi);
+	clk_disable_unprepare(prg->clk_ipg);
 	return 0;