mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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>
This commit is contained in:
parent
4ee8191c7c
commit
c07e734b7a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user