Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}