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: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Matt Porter 2014-10-28 10:08:13 -04:00 committed by Greg Kroah-Hartman
parent 53cbb00933
commit 755a21a9bf

View File

@ -290,6 +290,8 @@ int gb_connection_init(struct gb_connection *connection)
break;
}
ret = connection->handler->connection_init(connection);
if (ret)
connection->state = GB_CONNECTION_STATE_ERROR;