linux/drivers/staging/media
Steve Longerbeam 1f46424646 media: imx: Move capture device init to registered
If the CSI is unregistered and then registered again without the
driver being removed and re-probed (which will happen when the media
device is removed and re-probed without also removing/re-probing the
CSI), the result is the kobject error and backtrace "tried to init an
initialized object". This is because the video device is left in an
initialized state after being unregistered, thus the video device's
underlying kobject is also left in an initialized state when the device
is registered again.

Fix this by moving imx_media_capture_device_init() and _remove()
into csi_registered() and csi_unregistered(). This will create a new
un-initialized video device when the CSI is re-registered. Do this for
all the subdevices that register a capture device.

Reported-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-10-10 07:26:28 -03:00
..
allegro-dvt staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
hantro media: hantro: h264: Fix the frame_num wraparound case 2019-10-01 17:11:22 -03:00
imx media: imx: Move capture device init to registered 2019-10-10 07:26:28 -03:00
ipu3 media: use the BIT() macro 2019-08-26 14:08:50 -03:00
meson/vdec staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
omap4iss Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07:00
soc_camera media: drivers/staging/media: don't set description for ENUM_FMT 2019-07-22 14:41:32 -04:00
sunxi media: cedrus: fix various format-related compliance issues 2019-10-01 16:40:53 -03:00
tegra-vde media: staging: tegra-vde: Fix build error 2019-08-07 17:04:12 -03:00
Kconfig media: staging: davinci: remove vpfe driver 2019-07-25 06:33:14 -04:00
Makefile media: staging: davinci: remove vpfe driver 2019-07-25 06:33:14 -04:00