summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.h
diff options
context:
space:
mode:
authorFabien Parent <fparent@baylibre.com>2015-08-31 17:21:14 +0530
committerJohan Hovold <johan@hovoldconsulting.com>2015-09-03 14:46:52 +0200
commit50bb9ccaa0e12823e7f225ce1571d4ae3d1f83e0 (patch)
treedd5df79a366e8007369ab7241fbae08caf8ee5a6 /drivers/staging/greybus/connection.h
parentfda2381bd2d96b4f45806e4796d558eec678e3c6 (diff)
downloadop-kernel-dev-50bb9ccaa0e12823e7f225ce1571d4ae3d1f83e0.zip
op-kernel-dev-50bb9ccaa0e12823e7f225ce1571d4ae3d1f83e0.tar.gz
greybus: connection: fail to bind if connection init fails
gb_connection_init() can fail and will return proper error code in that case, but the caller is ignoring it currently. Fix that by properly handling errors returned from gb_connection_init() and propagating them to callers of gb_connection_bind_protocol(). Signed-off-by: Fabien Parent <fparent@baylibre.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers/staging/greybus/connection.h')
-rw-r--r--drivers/staging/greybus/connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h
index 0b442fe..e3ae01d 100644
--- a/drivers/staging/greybus/connection.h
+++ b/drivers/staging/greybus/connection.h
@@ -68,6 +68,6 @@ void gb_connection_push_timestamp(struct gb_connection *connection);
int gb_connection_pop_timestamp(struct gb_connection *connection,
struct timeval *tv);
-void gb_connection_bind_protocol(struct gb_connection *connection);
+int gb_connection_bind_protocol(struct gb_connection *connection);
#endif /* __CONNECTION_H */
OpenPOWER on IntegriCloud