alistair23-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
..
hdmi_drv.c [media] convert drivers/media/* to use module_platform_driver() 2012-01-10 23:27:13 -02:00
hdmiphy_drv.c
Kconfig
Makefile
mixer.h [media] v4l: s5p-tv: mixer: add support for selection API 2012-01-10 23:19:23 -02:00
mixer_drv.c
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
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
regs-mixer.h
regs-sdo.h
regs-vp.h
sdo_drv.c [media] convert drivers/media/* to use module_platform_driver() 2012-01-10 23:27:13 -02:00