greybus: connection: use bundle device for bundle error messages
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 3 Nov 2015 11:11:30 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:20:23 +0000 (20:20 -0800)
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>
drivers/staging/greybus/connection.c

index aef450f..c70518e 100644 (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;
        }