Commit 35822c04 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: connection: handle bundle-less connections in svc helpers

The svc connection helper functions should not assume that all dynamic
connections will have a bundle.

This is needed as the control bundle is going away.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 0f37860d
...@@ -294,7 +294,7 @@ gb_connection_svc_connection_create(struct gb_connection *connection) ...@@ -294,7 +294,7 @@ gb_connection_svc_connection_create(struct gb_connection *connection)
if (gb_connection_is_static(connection)) if (gb_connection_is_static(connection))
return 0; return 0;
intf = connection->bundle->intf; intf = connection->intf;
ret = gb_svc_connection_create(hd->svc, ret = gb_svc_connection_create(hd->svc,
hd->svc->ap_intf_id, hd->svc->ap_intf_id,
connection->hd_cport_id, connection->hd_cport_id,
...@@ -320,7 +320,7 @@ gb_connection_svc_connection_destroy(struct gb_connection *connection) ...@@ -320,7 +320,7 @@ gb_connection_svc_connection_destroy(struct gb_connection *connection)
gb_svc_connection_destroy(connection->hd->svc, gb_svc_connection_destroy(connection->hd->svc,
connection->hd->svc->ap_intf_id, connection->hd->svc->ap_intf_id,
connection->hd_cport_id, connection->hd_cport_id,
connection->bundle->intf->interface_id, connection->intf->interface_id,
connection->intf_cport_id); connection->intf_cport_id);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment