linux/drivers/media/platform/s3c-camif
Dongliang Mu d5e9bddb28 media: driver: s3c_camif: move s3c_camif_unregister_subdev out of camif_unregister_media_entities
In the error handling of s3c_camif_probe, s3c_camif_unregister_subdev
may be executed twice, one is from camif_unregister_media_entities.
Although there is sanity check about the registration status,
it is not good to call s3c_camif_unregister_subdev twice in the error
handling code.

Fix this by moving s3c_camif_unregister_subdev out of
camif_unregister_media_entities, and add a s3c_camif_unregister_subdev
in the s3c_camif_remove.

Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-11-30 12:06:27 +01:00
..
camif-capture.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
camif-core.c media: driver: s3c_camif: move s3c_camif_unregister_subdev out of camif_unregister_media_entities 2021-11-30 12:06:27 +01:00
camif-core.h media: s3c-camif/camif-core.h: fix kernel-doc warnings 2021-04-06 10:27:55 +02:00
camif-regs.c media: s3c-camif: make array 'registers' static const, makes object smaller 2019-10-01 16:43:49 -03:00
camif-regs.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00