greybus: connection: Use connection->dev for printing messages

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>
This commit is contained in:
Viresh Kumar 2015-07-03 17:00:27 +05:30 committed by Greg Kroah-Hartman
parent b950dc28bd
commit 87c016ee90

View 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;