Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d98f1b78 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Mauro Carvalho Chehab
Browse files

[media] media: mx2-emmaprp: Add missing mutex_destroy()



This patch adds the missing mutex_destroy(), when the driver is removed.

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent b97a6216
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -985,6 +985,8 @@ rel_vdev:
unreg_dev:
unreg_dev:
	v4l2_device_unregister(&pcdev->v4l2_dev);
	v4l2_device_unregister(&pcdev->v4l2_dev);


	mutex_destroy(&pcdev->dev_mutex);

	return ret;
	return ret;
}
}


@@ -998,6 +1000,7 @@ static int emmaprp_remove(struct platform_device *pdev)
	v4l2_m2m_release(pcdev->m2m_dev);
	v4l2_m2m_release(pcdev->m2m_dev);
	vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx);
	vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx);
	v4l2_device_unregister(&pcdev->v4l2_dev);
	v4l2_device_unregister(&pcdev->v4l2_dev);
	mutex_destroy(&pcdev->dev_mutex);


	return 0;
	return 0;
}
}