linux_dsm_epyc7002/drivers/media/video/ivtv
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
..
ivtv-cards.c
ivtv-cards.h
ivtv-controls.c
ivtv-controls.h
ivtv-driver.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-18 12:53:54 -08:00
ivtv-driver.h [media] ivtv: remove open_id/id from the filehandle code 2012-01-16 10:00:10 -02:00
ivtv-fileops.c [media] ivtv: remove open_id/id from the filehandle code 2012-01-16 10:00:10 -02:00
ivtv-fileops.h
ivtv-firmware.c [media] ivtv: Internally separate encoder & decoder standard setting 2011-06-01 08:46:38 -03:00
ivtv-firmware.h
ivtv-gpio.c
ivtv-gpio.h
ivtv-i2c.c
ivtv-i2c.h [media] video: Drop undue references to i2c-algo-bit 2011-11-24 15:11:17 -02:00
ivtv-ioctl.c [media] ivtv: switch to the v4l core lock 2012-01-16 09:59:43 -02:00
ivtv-ioctl.h [media] ivtv: Internally separate encoder & decoder standard setting 2011-06-01 08:46:38 -03:00
ivtv-irq.c [media] ivtv: remove open_id/id from the filehandle code 2012-01-16 10:00:10 -02:00
ivtv-irq.h
ivtv-mailbox.c
ivtv-mailbox.h
ivtv-queue.c
ivtv-queue.h
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c [media] ivtv: remove open_id/id from the filehandle code 2012-01-16 10:00:10 -02:00
ivtv-streams.h
ivtv-udma.c
ivtv-udma.h
ivtv-vbi.c [media] ivtv: Internally separate encoder & decoder standard setting 2011-06-01 08:46:38 -03:00
ivtv-vbi.h
ivtv-version.h [media] ivtv,cx18: Use default version control for VIDIOC_QUERYCAP 2011-07-27 17:53:14 -03:00
ivtv-yuv.c [media] ivtv: switch to the v4l core lock 2012-01-16 09:59:43 -02:00
ivtv-yuv.h
ivtvfb.c Driver core: driver_find() drops reference before returning 2012-01-24 16:00:34 -08:00
Kconfig
Makefile [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00