mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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 <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
b77f9328f2
commit
4e6e3f5cff
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue