]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: connection: return error-valued pointer on creation errors
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jan 2016 16:34:16 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:45:09 +0000 (22:45 -0800)
commit24e094d687a23878024589a854ce66a070b769cc
tree21ad4d1e291515bc4691fab832b30af1a58b4e22
parent96c2af5c6bf7dda9498fdcea57fde1bdc677236a
greybus: connection: return error-valued pointer on creation errors

Return an ERR_PTR on errors when creating connections.

This allows driver probe to fail with a more informative error message
as not all connection creation errors are due to memory exhaustion.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/control.c
drivers/staging/greybus/legacy.c
drivers/staging/greybus/svc.c