* [PATCH v2] gpu: ipu-v3: prg: add missed operations in remove
@ 2019-11-18 8:09 Chuhong Yuan
0 siblings, 0 replies; only message in thread
From: Chuhong Yuan @ 2019-11-18 8:09 UTC (permalink / raw)
Cc: Philipp Zabel, dri-devel, linux-kernel, Chuhong Yuan
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 --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)
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;
}
--
2.24.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-18 8:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 8:09 [PATCH v2] gpu: ipu-v3: prg: add missed operations in remove Chuhong Yuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®