parport: check exclusive access before register
Sudip Mukherjee authored
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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
50566ac8
Name Last commit Last update
..
BUGS-parport Linux-2.6.12-rc2
Kconfig parport: fix menu breakage
Makefile [PATCH] AX88796 parallel port driver
TODO-parport Linux-2.6.12-rc2
daisy.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
ieee1284.c Fix common misspellings
ieee1284_ops.c parport: fix ieee1284_epp_read_addr
multiface.h Linux-2.6.12-rc2
parport_amiga.c parport: drop owner assignment from platform_drivers
parport_atari.c parport: parport_atari: Remove obsolete IRQ_TYPE_SLOW
parport_ax88796.c parport: drop owner assignment from platform_drivers
parport_cs.c drivers/parport: use module_pcmcia_driver() in pcmcia drivers
parport_gsc.c parisc: parport0: fix this legacy no-device port driver!
parport_gsc.h parisc: parport0: fix this legacy no-device port driver!
parport_ip32.c drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO
parport_mfc3.c zorro: ZTWO_VADDR() should return "void __iomem *"
parport_pc.c parport: add device-model to parport subsystem
parport_serial.c parport: Add support for the WCH382 2S/1P multi-IO card
parport_sunbpp.c parport: drop owner assignment from platform_drivers
probe.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
procfs.c parport: add device-model to parport subsystem
share.c parport: check exclusive access before register