linux/drivers/media
Hans Verkuil 9e882e3bc9 [media] v4l2-device: check if already unregistered
It was possible to unregister an already unregistered v4l2_device struct.
Add a check whether that already happened and just return if that was
the case.
Also refuse to register a v4l2_device if both the dev and name fields are
empty. A warning was already produced in that case, but since the name field
is now used to detect whether or not the v4l2_device was already unregistered
this particular combination should be rejected.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-06-21 11:00:51 -03:00
..
common [media] tveeprom: remove v4l2-chip-ident.h include 2013-06-17 08:48:03 -03:00
dvb-core [media] media: dmxdev: remove dvb_ringbuffer_flush() on writer side 2013-06-19 11:48:09 -03:00
dvb-frontends [media] au8522_decoder: remove g_chip_ident op 2013-06-17 08:48:39 -03:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c Merge branch 'linus' into patchwork 2013-06-20 05:19:09 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] cx88: fix register mask 2013-06-21 10:48:18 -03:00
platform Merge branch 'linus' into patchwork 2013-06-20 05:19:09 -03:00
radio Merge branch 'linus' into patchwork 2013-06-20 05:19:09 -03:00
rc [media] rc: gpio-ir-recv: Remove redundant platform_set_drvdata() 2013-05-27 09:30:59 -03:00
tuners [media] r820t: fix imr calibration 2013-06-19 11:07:53 -03:00
usb [media] v4l2: remove obsolete v4l2_chip_match_host() 2013-06-21 10:30:54 -03:00
v4l2-core [media] v4l2-device: check if already unregistered 2013-06-21 11:00:51 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add a function removing all links of a media entity 2013-06-19 08:59:54 -03:00