linux/drivers/s390/net
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
..
claw.c [S390] fix mismatch in summation of I/O IRQ statistics 2011-10-30 15:16:15 +01:00
claw.h claw: rename READ/WRITE defines to avoid redefinitions 2010-08-12 16:04:22 -07:00
ctcm_dbug.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ctcm_dbug.h
ctcm_fsms.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ctcm_fsms.h
ctcm_main.c [S390] fix mismatch in summation of I/O IRQ statistics 2011-10-30 15:16:15 +01:00
ctcm_main.h ctcm: rename READ/WRITE defines to avoid redefinitions 2010-08-12 16:04:23 -07:00
ctcm_mpc.c ctcm: get rid of compile warning 2011-05-13 14:55:20 -04:00
ctcm_mpc.h net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
ctcm_sysfs.c [S390] sparse: fix sparse static warnings 2011-10-30 15:16:46 +01:00
fsm.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
fsm.h atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
Kconfig net: Fix references to deleted NET_ETHERNET Kconfig setting. 2011-11-09 19:26:53 -05:00
lcs.c net: Fix references to deleted NET_ETHERNET Kconfig setting. 2011-11-09 19:26:53 -05:00
lcs.h
Makefile [S390] smsgiucv_app: deliver z/VM CP special messages (SMSG) as uevents 2010-03-08 12:26:28 +01:00
netiucv.c netiucv: allow multiple interfaces to same peer 2011-12-20 14:05:04 -05:00
qeth_core_main.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2012-01-09 08:11:13 -08:00
qeth_core_mpc.c
qeth_core_mpc.h qeth: add OSA concurrent hardware trap 2011-05-13 14:55:20 -04:00
qeth_core_sys.c qeth: add OSA concurrent hardware trap 2011-05-13 14:55:20 -04:00
qeth_core.h qeth: Reduce CPU consumption through less SIGA-r calls 2011-11-16 17:28:20 -05:00
qeth_l2_main.c qeth: forbid recovery during shutdown 2011-12-20 14:05:04 -05:00
qeth_l3_main.c qeth: recovery through asynchronous delivery 2011-12-20 14:05:04 -05:00
qeth_l3_sys.c qeth: return with -EPERM if sniffing is not enabled 2011-11-16 17:27:59 -05:00
qeth_l3.h qeth: add support for af_iucv HiperSockets transport 2011-08-13 01:10:17 -07:00
smsgiucv_app.c Driver core: driver_find() drops reference before returning 2012-01-24 16:00:34 -08:00
smsgiucv.c s390: Fix possibly wrong size in strncmp (smsgiucv) 2011-02-02 15:00:02 -08:00
smsgiucv.h [S390] smsgiucv_app: deliver z/VM CP special messages (SMSG) as uevents 2010-03-08 12:26:28 +01:00