greybus: core: return error code when creating host device

Return a pointer-coded error from greybus_create_hd() rather
than NULL in the event an error occurs.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Alex Elder 2015-05-22 09:52:45 -05:00 • committed by Greg Kroah-Hartman
commit 8ea70fe049
3 changed files with 7 additions and 7 deletions