greybus: connection: fix cport-id range

Fix cport-id allocation that failed to include the highest port id in the
available cport-id range.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Johan Hovold 2015-11-21 10:51:58 +01:00 committed by Greg Kroah-Hartman
parent d3d2af51f9
commit 39f36c8f9f
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
{
return gb_connection_create_range(bundle->intf->hd, bundle,
&bundle->dev, cport_id, protocol_id,
0, bundle->intf->hd->num_cports - 1);
0, bundle->intf->hd->num_cports);
}
/*