greybus: interface: remove global manifest_descs list
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 23 Dec 2014 23:16:50 +0000 (15:16 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 05:00:33 +0000 (21:00 -0800)
commit86cad66677942601941c2b516ece2f5741123eda
tree40af6d383abcb5a82999d3bc7741fe8e8bc290d0
parentdf671553cbe286e885e61b61f8c126e034854a89
greybus: interface: remove global manifest_descs list

The list was global and had no locking.  It's not like we were ever
parsing more than one manifest at the same time right now, but we might
in the future.  And we really want this to be local to the interface
itself, for future work redoing how to bind protocols to bundles, so
move the list to the interface structure.

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