linux/drivers/media/video/cx18
Alan Stern fde25a9b63 Driver core: driver_find() drops reference before returning
As part of the removal of get_driver()/put_driver(), this patch
(as1510) changes driver_find(); it now drops the reference it acquires
before returning.  The patch also adjusts all the callers of
driver_find() to remove the now unnecessary calls to put_driver().

In addition, the patch adds a warning to driver_find(): Callers must
make sure the driver they are searching for does not get unloaded
while they are using it.  This has always been the case; driver_find()
has never prevented a driver from being unregistered or unloaded.
Hence the patch will not introduce any new bugs.  The existing callers
all seem to be okay in this respect, however I don't understand the
video drivers well enough to be certain about them.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: Kyungmin Park <kyungmin.park@samsung.com>
CC: Andy Walls <awalls@md.metrocast.net>
CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2012-01-24 16:00:34 -08:00
..
Kconfig [media] cx18: Clean up mmap() support for raw YUV 2011-05-20 09:30:22 -03:00
Makefile [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
cx18-alsa-main.c Driver core: driver_find() drops reference before returning 2012-01-24 16:00:34 -08:00
cx18-alsa-mixer.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-alsa-mixer.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-alsa-pcm.c [media] cx18: convert to unlocked_ioctl 2010-12-01 20:10:16 -02:00
cx18-alsa-pcm.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-alsa.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-audio.c V4L/DVB (11624): cx18: Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register 2009-06-16 18:20:45 -03:00
cx18-audio.h
cx18-av-audio.c [media] cx18: Use the control framework 2011-03-21 20:31:49 -03:00
cx18-av-core.c [media] cx18: Use the control framework 2011-03-21 20:31:49 -03:00
cx18-av-core.h Fix common misspellings 2011-03-31 11:26:23 -03:00
cx18-av-firmware.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-av-vbi.c V4L/DVB: cx18: support new vbi ops to set/get VBI format 2010-05-19 12:58:48 -03:00
cx18-cards.c [media] cx18: Make RF analog TV work for newer HVR-1600 models with silicon tuners 2011-05-20 09:26:54 -03:00
cx18-cards.h [media] cx18: Make RF analog TV work for newer HVR-1600 models with silicon tuners 2011-05-20 09:26:54 -03:00
cx18-controls.c [media] cx18: Use the control framework 2011-03-21 20:31:49 -03:00
cx18-controls.h [media] cx18: Use the control framework 2011-03-21 20:31:49 -03:00
cx18-driver.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
cx18-driver.h [media] cx18: Fix videobuf capture 2011-09-18 08:03:39 -03:00
cx18-dvb.c [media] cx18: Add support for Hauppauge HVR-1600 models with s5h1411 2011-03-02 13:45:56 -03:00
cx18-dvb.h
cx18-fileops.c [media] cx18: remove exclusive open of radio device 2012-01-16 09:59:22 -02:00
cx18-fileops.h [media] cx18: mmap() support for raw YUV video capture 2011-05-20 09:28:43 -03:00
cx18-firmware.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-firmware.h
cx18-gpio.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-gpio.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-i2c.c [media] video: Drop undue references to i2c-algo-bit 2011-11-24 15:11:17 -02:00
cx18-i2c.h [media] video: Drop undue references to i2c-algo-bit 2011-11-24 15:11:17 -02:00
cx18-io.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-io.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-ioctl.c [media] cx18: Fix videobuf capture 2011-09-18 08:03:39 -03:00
cx18-ioctl.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-irq.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-irq.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-mailbox.c [media] cx18: Fix videobuf capture 2011-09-18 08:03:39 -03:00
cx18-mailbox.h treewide: Correct spelling of successfully in comments 2011-09-27 18:08:04 +02:00
cx18-queue.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-queue.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-scb.c V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-scb.h V4L/DVB: cx18, cx23885, v4l2 doc, MAINTAINERS: Update Andy Walls' email address 2010-06-01 01:24:29 -03:00
cx18-streams.c [media] cx18: Fix videobuf capture 2011-09-18 08:03:39 -03:00
cx18-streams.h [media] v4l/cx18: update workqueue usage 2011-01-19 11:45:46 -02:00
cx18-vbi.c Fix common misspellings 2011-03-31 11:26:23 -03:00
cx18-vbi.h V4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handling 2009-12-05 18:41:51 -02:00
cx18-version.h [media] ivtv,cx18: Use default version control for VIDIOC_QUERYCAP 2011-07-27 17:53:14 -03:00
cx18-video.c V4L/DVB (11380): v4l2-subdev: change s_routing prototype 2009-04-06 21:44:27 -03:00
cx18-video.h
cx23418.h [media] cx18: mmap() support for raw YUV video capture 2011-05-20 09:28:43 -03:00