diff options
author | Greg Kroah-Hartman <greg@kroah.com> | 2014-12-24 13:01:46 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2015-01-02 13:05:42 -0800 |
commit | e5646710c1836abb038415d3009f1c72d6794b77 (patch) | |
tree | aa6fab744f389401f859e8bab4c8a8306729560d /drivers/staging/greybus/module.h | |
parent | 2c07817e72450e6fab7b49c3cbb35799bc418880 (diff) |
greybus: module: get rid of global list of modules
Use the list that the driver core keeps of our structure, no need to
duplicate it with a local list as well. This gets rid of a static lock
too, always a nice thing to do.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/module.h')
-rw-r--r-- | drivers/staging/greybus/module.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/greybus/module.h b/drivers/staging/greybus/module.h index 9ca7c2899a3f..75a8818de1c5 100644 --- a/drivers/staging/greybus/module.h +++ b/drivers/staging/greybus/module.h @@ -12,8 +12,6 @@ /* Greybus "public" definitions" */ struct gb_module { struct device dev; - - struct list_head list; u8 module_id; /* Physical location within the Endo */ }; #define to_gb_module(d) container_of(d, struct gb_module, dev) |