aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan@hovoldconsulting.com> 2015-11-25 15:59:03 +0100
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2015-11-25 15:27:06 -0800
commit582b3a13920c71ca6e546598d344dc6027168e64 (patch)
treea7ec00eb43a85be620df7e8a18f0d29678e1fa34 /drivers/staging/greybus/connection.c
parentgreybus: hd: make host device a device (diff)
downloadlinux-582b3a13920c71ca6e546598d344dc6027168e64.tar.gz
linux-582b3a13920c71ca6e546598d344dc6027168e64.tar.bz2
linux-582b3a13920c71ca6e546598d344dc6027168e64.zip
greybus: connection: drop parent parameter from connection create
The parent parameter was only used for debug messages and to name the connection workqueue. Use the host-device device for this instead. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index c076171cba7a..cca52934ce37 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -106,7 +106,7 @@ int svc_update_connection(struct gb_interface *intf,
*/
struct gb_connection *
gb_connection_create_range(struct gb_host_device *hd,
- struct gb_bundle *bundle, struct device *parent,
+ struct gb_bundle *bundle,
u16 cport_id, u8 protocol_id, u32 ida_start,
u32 ida_end)
{
@@ -152,7 +152,7 @@ gb_connection_create_range(struct gb_host_device *hd,
INIT_LIST_HEAD(&connection->operations);
connection->wq = alloc_workqueue("%s:%d", WQ_UNBOUND, 1,
- dev_name(parent), cport_id);
+ dev_name(&hd->dev), hd_cport_id);
if (!connection->wq)
goto err_free_connection;
@@ -170,7 +170,7 @@ gb_connection_create_range(struct gb_host_device *hd,
retval = gb_connection_bind_protocol(connection);
if (retval) {
- dev_err(parent, "%d: failed to bind protocol: %d\n",
+ dev_err(&hd->dev, "%d: failed to bind protocol: %d\n",
cport_id, retval);
gb_connection_destroy(connection);
return NULL;
@@ -218,7 +218,7 @@ struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
u16 cport_id, u8 protocol_id)
{
return gb_connection_create_range(bundle->intf->hd, bundle,
- &bundle->dev, cport_id, protocol_id,
+ cport_id, protocol_id,
0, bundle->intf->hd->num_cports);
}