From 87c016ee908b8727f8d812bf3a36844be20d3410 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Fri, 3 Jul 2015 17:00:27 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 2e306d13ac28..6994a84439f8 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -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; -- 2.20.1