]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: return meaningful error for visorchipset_init()
authorBenjamin Romer <benjamin.romer@unisys.com>
Tue, 23 Feb 2016 15:01:55 +0000 (10:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:40:52 +0000 (22:40 -0800)
commitb9b6d519f1d565b7473a05f524523911e19343fb
tree350c0d45a8f7e48c0bff7c889b84cca5b22721eb
parent89e3c0012c04eaae4bfae7b92cf784a196dedef9
staging: unisys: return meaningful error for visorchipset_init()

The other error paths return meaningful error codes, except for the one
when registering a device, which just returned -1. Let's return ENODEV
when it fails to register instead.

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