Skip to contentSkip to conversation

slimbus: qcom: add missed clk_disable_unprepare in remove

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

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

PATCH 1/1 slimbus: qcom: add missed clk_disable_unprepare in remove

The remove misses to disable and unprepare rclk and hclk. Add calls to clk_disable_unprepare to fix it.

---
 drivers/slimbus/qcom-ctrl.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/slimbus/qcom-ctrl.c +2 -0
index a444badd8df5..4aad2566f52d 100644
@@ -641,6 +641,8 @@ static int qcom_slim_remove(struct platform_device *pdev)
 
 	pm_runtime_disable(&pdev->dev);
 	slim_unregister_controller(&ctrl->ctrl);
+	clk_disable_unprepare(ctrl->rclk);
+	clk_disable_unprepare(ctrl->hclk);
 	destroy_workqueue(ctrl->rxwq);
 	return 0;
 }
Signature · 1 line
2.23.0