Commit 755a21a9 authored by Matt Porter's avatar Matt Porter Committed by Greg Kroah-Hartman

greybus: connection: call connection_init hook after setting the handler

In gb_connection_init() we set the connection_handler for each supported
protocol, but we never call the connection_init hook after doing so. This
results in a failure being returned so fix it by calling the connection_init
hook to get a good return and the associated driver initialized.
Signed-off-by: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 53cbb009
...@@ -290,6 +290,8 @@ int gb_connection_init(struct gb_connection *connection) ...@@ -290,6 +290,8 @@ int gb_connection_init(struct gb_connection *connection)
break; break;
} }
ret = connection->handler->connection_init(connection);
if (ret) if (ret)
connection->state = GB_CONNECTION_STATE_ERROR; connection->state = GB_CONNECTION_STATE_ERROR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment