linux_dsm_epyc7002/drivers/media/video/s5p-fimc
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
..
fimc-capture.c [media] drivers/media/video/s5p-fimc/fimc-capture.c: adjust double test 2012-01-17 22:53:34 -02:00
fimc-core.c [media] s5p-fimc: Fix incorrect control ID assignment 2012-01-17 22:53:12 -02:00
fimc-core.h [media] s5p-fimc: Add support for alpha component configuration 2011-12-30 14:06:14 -02:00
fimc-mdevice.c Driver core: driver_find() drops reference before returning 2012-01-24 16:00:34 -08:00
fimc-mdevice.h [media] s5p-fimc: Add the media device driver 2011-09-06 17:35:52 -03:00
fimc-reg.c [media] s5p-fimc: Add support for alpha component configuration 2011-12-30 14:06:14 -02:00
Makefile [media] s5p-fimc: Add the media device driver 2011-09-06 17:35:52 -03:00
mipi-csis.c [media] s5p-csis: Enable v4l subdev device node 2011-12-30 14:39:54 -02:00
mipi-csis.h [media] s5p-csis: Enable v4l subdev device node 2011-12-30 14:39:54 -02:00
regs-fimc.h [media] s5p-fimc: Add support for alpha component configuration 2011-12-30 14:06:14 -02:00