Commit 6ff5e00a authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: remove cports and strings from gb_module

We no longer keep copies of strings found in the manifuest in
a module's strings array, so we can get rid of the strings array.
Similarly, the new manifest parsing code sets up connections for
each cport id advertised for a module, so the cport array is
no longer needed either.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 09c521dc
...@@ -118,10 +118,7 @@ EXPORT_SYMBOL_GPL(greybus_deregister); ...@@ -118,10 +118,7 @@ EXPORT_SYMBOL_GPL(greybus_deregister);
static void greybus_module_release(struct device *dev) static void greybus_module_release(struct device *dev)
{ {
struct gb_module *gmod = to_gb_module(dev); struct gb_module *gmod = to_gb_module(dev);
int i;
for (i = 0; i < gmod->num_strings; ++i)
kfree(gmod->string[i]);
kfree(gmod); kfree(gmod);
} }
......
...@@ -28,11 +28,6 @@ struct gb_module { ...@@ -28,11 +28,6 @@ struct gb_module {
char *product_string; char *product_string;
u64 unique_id; u64 unique_id;
int num_cports;
int num_strings;
u16 cport_ids[MAX_CPORTS_PER_MODULE];
struct gmod_string *string[MAX_STRINGS_PER_MODULE];
struct greybus_host_device *hd; struct greybus_host_device *hd;
struct gb_tty *gb_tty; struct gb_tty *gb_tty;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment