media: sun4i-csi: Fix 'Unbalanced pm_runtime_enable!'
authorOleg Verych <olecom@gmail.com>
Sat, 7 Jan 2023 08:37:49 +0000 (09:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 06:30:13 +0000 (07:30 +0100)
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>
drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c

index 18e6c65..86c5235 100644 (file)
@@ -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);