Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: exynos4-is: add missed clk_disable_unprepare in remove

This driver forgets to disable and unprepare clock when remove.
Add a call to clk_disable_unprepare() to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Chuhong Yuan and committed by
Mauro Carvalho Chehab
6b212c0c 30defecb

+3
+3
drivers/media/platform/exynos4-is/fimc-lite.c
··· 1614 1614 struct fimc_lite *fimc = platform_get_drvdata(pdev); 1615 1615 struct device *dev = &pdev->dev; 1616 1616 1617 + if (!pm_runtime_enabled(dev)) 1618 + clk_disable_unprepare(fimc->clock); 1619 + 1617 1620 pm_runtime_disable(dev); 1618 1621 pm_runtime_set_suspended(dev); 1619 1622 fimc_lite_unregister_capture_subdev(fimc);