slimbus: qcom: add missed clk_disable_unprepare in remove
authorChuhong Yuan <hslester96@gmail.com>
Thu, 9 Jan 2020 10:31:48 +0000 (10:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 20:46:48 +0000 (21:46 +0100)
The remove misses to disable and unprepare rclk and hclk.
Add calls to clk_disable_unprepare to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200109103148.5612-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/qcom-ctrl.c

index a444badd8df5a946a3fe51a3347e120245f564e5..4aad2566f52d275f546b196dcec571b71ba95c56 100644 (file)
@@ -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;
 }