Commit c07e734b authored by Oleg Verych's avatar Oleg Verych Committed by Mauro Carvalho Chehab
Browse files

media: sun4i-csi: Fix 'Unbalanced pm_runtime_enable!'



When removing the module, balance PM runtime enable with
the corresponding disable call.

Signed-off-by: default avatarOleg Verych <olecom@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 4ee8191c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);