staging: unisys: visorbus: my_device_create add error handling
authorDavid Kershner <david.kershner@unisys.com>
Thu, 22 Dec 2016 16:09:04 +0000 (11:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:19:06 +0000 (15:19 +0100)
commitad2a7d65b126693d73a015722c438701fbf4b4ad
treed7fbb31a6d637111f7525a11c996e3e2be75511f
parent6008a071d2c41ffe63d7a1d29ab7ca8558579bb6
staging: unisys: visorbus: my_device_create add error handling

Add proper error handling to the function my_device_create and
propagate the error message up the stack.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c