greybus: connection: fail on missing protocol
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 7 Dec 2015 14:05:31 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 8 Dec 2015 20:31:14 +0000 (15:31 -0500)
commit74c831653309872b4a514cb27f456f20a7914173
tree27c84abc64935e484705b504fe238854b0562ca3
parent2d54e4db4efd244181aa6a2f54f0ec362adc9d4d
greybus: connection: fail on missing protocol

Make sure to fail properly when a protocol is missing.

This prevents the connection from being created, which is fine as we
currently never bind protocols post creation.

This is an intermediate step in moving protocol binding to
connection_init.

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