Commit e6c88bf3 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: connection: use bundle device for bundle error messages

It is safe to use the bundle device for error messages when we know we
have a bundle.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 0e305506
......@@ -123,7 +123,8 @@ gb_connection_create_range(struct greybus_host_device *hd,
* about holding the connection lock.
*/
if (bundle && gb_connection_intf_find(bundle->intf, cport_id)) {
dev_err(parent, "cport 0x%04hx already connected\n", cport_id);
dev_err(&bundle->dev, "cport 0x%04hx already connected\n",
cport_id);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment