From: Viresh Kumar Date: Fri, 3 Jul 2015 11:30:27 +0000 (+0530) Subject: greybus: connection: Use connection->dev for printing messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87c016ee908b8727f8d812bf3a36844be20d3410;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;