Skip to content

Commit

Permalink
slimbus: qcom: add missed clk_disable_unprepare in remove
Browse files Browse the repository at this point in the history
The remove misses to disable and unprepare rclk and hclk.
Add calls to clk_disable_unprepare to fix it.

Signed-off-by: Chuhong Yuan <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
WillLester authored and gregkh committed Jan 14, 2020
1 parent 6da1dfb commit 89d93c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/slimbus/qcom-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 89d93c6

Please sign in to comment.