From: Johan Hovold Date: Tue, 3 Nov 2015 11:11:30 +0000 (+0100) Subject: greybus: connection: use bundle device for bundle error messages X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~1076 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6c88bf31e9ef22e3503e0f905cb6fa3c8c53f26;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index aef450f..c70518ed 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -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; }