summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/manifest.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2014-10-03 14:14:25 -0500
committerGreg Kroah-Hartman <greg@kroah.com>2014-10-03 19:00:10 -0700
commit937d0da83ffde769f24b5124d66f793045c5da10 (patch)
tree7abfcf4adedf9ba7497047672900fcb7438ed136 /drivers/staging/greybus/manifest.h
parent177404bd20fdabd77d04ad818d56ab34150fff4c (diff)
downloadop-kernel-dev-937d0da83ffde769f24b5124d66f793045c5da10.zip
op-kernel-dev-937d0da83ffde769f24b5124d66f793045c5da10.tar.gz
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>
Diffstat (limited to 'drivers/staging/greybus/manifest.h')
-rw-r--r--drivers/staging/greybus/manifest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/manifest.h b/drivers/staging/greybus/manifest.h
index 29cbf92..a1fe2c12 100644
--- a/drivers/staging/greybus/manifest.h
+++ b/drivers/staging/greybus/manifest.h
@@ -9,6 +9,7 @@
#ifndef __MANIFEST_H
#define __MANIFEST_H
-struct gb_module *gb_manifest_parse(void *data, size_t size);
+struct gb_module;
+bool gb_manifest_parse(struct gb_module *gmod, void *data, size_t size);
#endif /* __MANIFEST_H */
OpenPOWER on IntegriCloud