linux/drivers/media/video/s5p-tv
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] s5p-tv: Add PM_RUNTIME dependency 2011-09-26 08:03:44 -03:00
Makefile [media] v4l: s5p-tv: add TV Mixer driver for Samsung S5P platform 2011-07-27 17:56:01 -03:00
hdmi_drv.c [media] convert drivers/media/* to use module_platform_driver() 2012-01-10 23:27:13 -02:00
hdmiphy_drv.c
mixer.h [media] v4l: s5p-tv: mixer: add support for selection API 2012-01-10 23:19:23 -02:00
mixer_drv.c [media] v4l: s5p-tv: add TV Mixer driver for Samsung S5P platform 2011-07-27 17:56:01 -03:00
mixer_grp_layer.c [media] v4l: s5p-tv: mixer: add support for selection API 2012-01-10 23:19:23 -02:00
mixer_reg.c [media] s5p-tv: fix mbus configuration 2011-09-26 08:04:31 -03:00
mixer_video.c Driver core: driver_find() drops reference before returning 2012-01-24 16:00:34 -08:00
mixer_vp_layer.c [media] v4l: s5p-tv: mixer: fix setup of VP scaling 2012-01-10 23:19:40 -02:00
regs-hdmi.h [media] s5p-tv: hdmi: use DVI mode 2011-09-26 08:04:16 -03:00
regs-mixer.h [media] s5p-tv: fix mbus configuration 2011-09-26 08:04:31 -03:00
regs-sdo.h [media] v4l: s5p-tv: add SDO driver for Samsung S5P platform 2011-07-27 17:56:01 -03:00
regs-vp.h [media] v4l: s5p-tv: add TV Mixer driver for Samsung S5P platform 2011-07-27 17:56:01 -03:00
sdo_drv.c [media] convert drivers/media/* to use module_platform_driver() 2012-01-10 23:27:13 -02:00