From 755a21a9bfeef4bd8145d0896a1b6f668f6d99f3 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Tue, 28 Oct 2014 10:08:13 -0400 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index f76855c609c3..69ea3a788771 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -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; -- 2.39.2