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>
This commit is contained in:
parent
0e30550665
commit
e6c88bf31e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user