WSL2-Linux-Kernel/drivers/parport
Sudip Mukherjee 50566ac870 parport: check exclusive access before register
As of now we were starting the registration process and after the device
is registered we were checking if the device can be used by the
parport. Now lets check it first so that we do not need to go through
the registration process only to fail at the end.
The original exclusive access check at the end is still there so that we
do not get any surprises if two different process registers its device
with same parport and with exclusive access at the same time.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-06-12 16:58:33 -07:00
..
BUGS-parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig parport: fix menu breakage 2014-07-25 18:00:23 -07:00
Makefile [PATCH] AX88796 parallel port driver 2006-06-25 10:01:09 -07:00
TODO-parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daisy.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
ieee1284.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ieee1284_ops.c parport: fix ieee1284_epp_read_addr 2008-02-08 09:22:36 -08:00
multiface.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
parport_amiga.c parport: drop owner assignment from platform_drivers 2014-10-20 16:21:20 +02:00
parport_atari.c parport: parport_atari: Remove obsolete IRQ_TYPE_SLOW 2015-01-15 13:44:50 +01:00
parport_ax88796.c parport: drop owner assignment from platform_drivers 2014-10-20 16:21:20 +02:00
parport_cs.c drivers/parport: use module_pcmcia_driver() in pcmcia drivers 2013-03-15 12:26:38 -07:00
parport_gsc.c parisc: parport0: fix this legacy no-device port driver! 2013-06-01 14:46:42 +02:00
parport_gsc.h parisc: parport0: fix this legacy no-device port driver! 2013-06-01 14:46:42 +02:00
parport_ip32.c drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO 2014-08-08 15:57:25 -07:00
parport_mfc3.c zorro: ZTWO_VADDR() should return "void __iomem *" 2013-11-26 11:09:07 +01:00
parport_pc.c parport: add device-model to parport subsystem 2015-06-01 07:08:18 +09:00
parport_serial.c parport: Add support for the WCH382 2S/1P multi-IO card 2014-11-06 14:58:21 -08:00
parport_sunbpp.c parport: drop owner assignment from platform_drivers 2014-10-20 16:21:20 +02:00
probe.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
procfs.c parport: add device-model to parport subsystem 2015-06-01 07:08:18 +09:00
share.c parport: check exclusive access before register 2015-06-12 16:58:33 -07:00