OSDN Git Service

greybus: connection: Use connection->dev for printing messages
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 3 Jul 2015 11:30:27 +0000 (17:00 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 8 Jul 2015 18:40:53 +0000 (11:40 -0700)
We failed to bind a protocol for the connection, not for bundle. And so
connection's 'dev' must be used for printing message.

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

index 2e306d1..6994a84 100644 (file)
@@ -209,7 +209,7 @@ struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
        /* XXX Will have to establish connections to get version */
        gb_connection_bind_protocol(connection);
        if (!connection->protocol)
-               dev_warn(&bundle->dev,
+               dev_warn(&connection->dev,
                         "protocol 0x%02hhx handler not found\n", protocol_id);
 
        return connection;