diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2004-03-02 19:07:08 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-02 19:07:08 -0800 |
| commit | ae748b8aca5c32ab2a5c3240f815210c88658c8f (patch) | |
| tree | 699edfd9e66257e54af67e9913a7a1ce5d6da3a7 /include/linux | |
| parent | b484a7488d6da96812fac351f9124c4fddb86e99 (diff) | |
[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.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/parport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h index 5791b1b45d11..ddfd7a3f9daf 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -340,7 +340,7 @@ struct parport *parport_register_port(unsigned long base, int irq, int dma, void parport_announce_port (struct parport *port); /* Unregister a port. */ -extern void parport_unregister_port(struct parport *port); +extern void parport_remove_port(struct parport *port); /* parport_enumerate returns a pointer to the linked list of all the ports in this machine. DON'T USE THIS. Use |
