]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorbus: Unregister driver on error
authorDavid Kershner <david.kershner@unisys.com>
Fri, 4 Sep 2015 16:01:31 +0000 (12:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:43:40 +0000 (09:43 -0700)
commit4a4c4609b6c5c35e6d4ea29e1e70cf0fa034c417
treef5c87ee07f39d3d75ddcca0d5b57344d5f32bd4c
parentebaf40541ed99b4167be6e518e5f9e0101083d58
staging: unisys: visorbus: Unregister driver on error

If there is an error in registering driver attributes, unregister
the driver as well.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c