]> git.neil.brown.name Git - history.git/commit
[PATCH] parport: fix parport_unregister_port
authorAlexander Viro <viro@www.linux.org.uk>
Wed, 3 Mar 2004 03:07:08 +0000 (19:07 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 3 Mar 2004 03:07:08 +0000 (19:07 -0800)
commitae748b8aca5c32ab2a5c3240f815210c88658c8f
tree699edfd9e66257e54af67e9913a7a1ce5d6da3a7
parentb484a7488d6da96812fac351f9124c4fddb86e99
[PATCH] parport: fix parport_unregister_port

parport_unregister_port() is split; parport_remove_port() does
what parport_unregister_port() used to do sans the final parport_put_port()
call.
Callers updated; many of them needed only parport_put_port() (failure
exit paths where we never had the port announced to drivers).
Fixed multiple races on port removal by shifting parport_remove_port()
in front of the code that releases irq/io ports/etc.
drivers/parport/parport_amiga.c
drivers/parport/parport_atari.c
drivers/parport/parport_gsc.c
drivers/parport/parport_mfc3.c
drivers/parport/parport_pc.c
drivers/parport/parport_sunbpp.c
drivers/parport/share.c
drivers/usb/misc/uss720.c
include/linux/parport.h