tiocx: check retval from bus_register()
authorJiri Kosina <jkosina@suse.cz>
Tue, 19 Mar 2013 09:36:13 +0000 (10:36 +0100)
committerTony Luck <tony.luck@intel.com>
Tue, 19 Mar 2013 23:14:52 +0000 (16:14 -0700)
commitd7c6797fbc2c2efa7573817685d2a76fd274d2de
tree9ce2e75a774aee71509f8f98cd9b24f60a2d2429
parenta937536b868b8369b98967929045f1df54234323
tiocx: check retval from bus_register()

Properly check return value from bus_register() and propagate it out of
tiocx_init() in case of failure.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/tiocx.c