From e6c88bf31e9ef22e3503e0f905cb6fa3c8c53f26 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 3 Nov 2015 12:11:30 +0100 Subject: [PATCH] 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 --- drivers/staging/greybus/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index aef450f780f3..c70518ed504f 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; } -- 2.20.1