diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-11-03 12:11:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-11-04 20:20:23 -0800 |
commit | e6c88bf31e9ef22e3503e0f905cb6fa3c8c53f26 (patch) | |
tree | 506d01424384c5b475ee4f3de7db48413fdbb2d0 /drivers/staging/greybus/connection.c | |
parent | 0e30550665cafe61776aa9730f876ade9a02a258 (diff) | |
download | linux-stable-e6c88bf31e9ef22e3503e0f905cb6fa3c8c53f26.tar.gz linux-stable-e6c88bf31e9ef22e3503e0f905cb6fa3c8c53f26.tar.bz2 linux-stable-e6c88bf31e9ef22e3503e0f905cb6fa3c8c53f26.zip |
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>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |