parport: fix error handling
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 15 Jun 2015 14:35:49 +0000 (20:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:15:49 +0000 (21:15 -0700)
commitcabea695875e3a07313c205a9753c7416126dfa2
tree67b8e1e70bb322a2353ea6e27b7edec75582ebf3
parent52721d9d3334c1cb1f76219a161084094ec634dc
parport: fix error handling

After registering the device if exclusive access fails for any reason
then we need to unregister the device to remove all references.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/share.c