|
@@ -1110,6 +1110,8 @@ static int fimc_remove(struct platform_device *pdev)
|
|
struct fimc_dev *fimc = platform_get_drvdata(pdev);
|
|
struct fimc_dev *fimc = platform_get_drvdata(pdev);
|
|
|
|
|
|
pm_runtime_disable(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
|
+ if (!pm_runtime_status_suspended(&pdev->dev))
|
|
|
|
+ clk_disable(fimc->clock[CLK_GATE]);
|
|
pm_runtime_set_suspended(&pdev->dev);
|
|
pm_runtime_set_suspended(&pdev->dev);
|
|
|
|
|
|
fimc_unregister_capture_subdev(fimc);
|
|
fimc_unregister_capture_subdev(fimc);
|