1
0
Fork 0

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: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Johan Hovold 2015-11-03 12:11:30 +01:00 committed by Greg Kroah-Hartman
parent 0e30550665
commit e6c88bf31e
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}