staging: unisys: visorbus: don't unregister if we failed to register
authorDavid Kershner <david.kershner@unisys.com>
Tue, 28 Mar 2017 13:34:52 +0000 (09:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:17:03 +0000 (09:17 +0200)
commit293deb2c0ca4f541b1bed06c1f5dd25cdb60a2d8
tree600ae4b9dc38ab865902c8fab6017bf8c6bf778c
parent711c67f4ecc81a8b1ebf26844c5874888078ed46
staging: unisys: visorbus: don't unregister if we failed to register

If we fail to register the visordriver, don't call unregister, just
return with the error.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c