summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorOleg Verych <olecom@gmail.com>2023-01-07 09:37:49 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-02-08 07:30:13 +0100
commitc07e734b7a65c7706319e24f9b14ec9d262fa50c (patch)
tree842947a7dd4a6a179014969771cbabcd30c7306a /drivers/media/platform
parent4ee8191c7c9f2dc62bd007dd4ac79b7799785c36 (diff)
downloadlinux-stable-c07e734b7a65c7706319e24f9b14ec9d262fa50c.tar.gz
linux-stable-c07e734b7a65c7706319e24f9b14ec9d262fa50c.tar.bz2
linux-stable-c07e734b7a65c7706319e24f9b14ec9d262fa50c.zip
media: sun4i-csi: Fix 'Unbalanced pm_runtime_enable!'
When removing the module, balance PM runtime enable with the corresponding disable call. Signed-off-by: Oleg Verych <olecom@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c b/drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c
index 18e6c65f4737..86c5235a0c7a 100644
--- a/drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c
+++ b/drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c
@@ -264,6 +264,7 @@ static int sun4i_csi_remove(struct platform_device *pdev)
{
struct sun4i_csi *csi = platform_get_drvdata(pdev);
+ pm_runtime_disable(&pdev->dev);
v4l2_async_nf_unregister(&csi->notifier);
v4l2_async_nf_cleanup(&csi->notifier);
vb2_video_unregister_device(&csi->vdev);