From: Johan Hovold Date: Fri, 8 Jan 2016 19:13:40 +0000 (+0100) Subject: greybus: connection: fix version-request error handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e6e3f5cff2dc72c05c8a8fb4539189ac9141133;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: connection: fix version-request error handling Use the host device and connection name when logging errors as the version-request helper must not assume that all connection have a bundle. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 5a24dbef98f2..b356ee0575e2 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -378,8 +378,9 @@ static int gb_connection_protocol_get_version(struct gb_connection *connection) ret = gb_protocol_get_version(connection); if (ret) { - dev_err(&connection->bundle->dev, - "failed to get protocol version: %d\n", ret); + dev_err(&connection->hd->dev, + "%s: failed to get protocol version: %d\n", + connection->name, ret); return ret; }