]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visornic: handle error return from device registration
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 4 Sep 2015 16:01:33 +0000 (12:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:43:41 +0000 (09:43 -0700)
commit824dca3af7fc333bc4625cd9a1d3473eb12a4083
treeae7c9c82f6a0e7584f075ca345df40b4c9339c6f
parent6327fd716a4fffce2540cc8d71ff0cea1b16d3d9
staging: unisys: visornic: handle error return from device registration

There is no code to handle an error return in visornic, when it tries to
register with visorbus. This patch handles an error return from
visorbus_register_visor_driver() by dropping out of initialization.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c