greybus: use ida for cport id allocation
authorAlex Elder <elder@linaro.org>
Fri, 3 Oct 2014 19:14:24 +0000 (14:14 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 4 Oct 2014 02:00:10 +0000 (19:00 -0700)
commit177404bd20fdabd77d04ad818d56ab34150fff4c
tree75d760db3a22d8b2bb2c32726a7d752bbe2a8a87
parent063e6ec221b6a68d28642e6653ae7cef2fdb11fd
greybus: use ida for cport id allocation

The ida mechanism for allocating ids may be overkill but it works.

Don't preallocate the id 0 for control.  That should be done
when initializing connections based on the manifest anyway.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/core.c
drivers/staging/greybus/greybus.h