greybus: fix module setup
authorAlex Elder <elder@linaro.org>
Fri, 3 Oct 2014 19:14:25 +0000 (14:14 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 4 Oct 2014 02:00:10 +0000 (19:00 -0700)
commit937d0da83ffde769f24b5124d66f793045c5da10
tree7abfcf4adedf9ba7497047672900fcb7438ed136
parent177404bd20fdabd77d04ad818d56ab34150fff4c
greybus: fix module setup

The code that was setting up a module was not properly initializing
the module data structure.  Fixing this required a little rework.

Now gb_add_module() (which the host device pointer and module id)
allocates and initializes the structure, and passes it to
gb_manifest_parse() for populating it further.

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