From: Johan Hovold Date: Sat, 21 Nov 2015 09:51:58 +0000 (+0100) Subject: greybus: connection: fix cport-id range X-Git-Tag: v4.9.8~1233^2~378^2~21^2~1022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39f36c8f9ff6203301a1d7feb7f51d2563abbd3a;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 96dabf7..695f148 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -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); } /*