mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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:
parent
b950dc28bd
commit
87c016ee90
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue