commit | 5c1ac6945526c76258869c8c04632ab5ae61bdab | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <gregkh@google.com> | Wed Jul 08 10:44:09 2015 -0700 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Wed Jul 08 11:53:43 2015 -0700 |
tree | ee38c1643a729fba6d4e314526944b38d31f9f53 | |
parent | 6ceb8fdeaec665642de944ee47d11440e72a5e26 [diff] |
greybus: properly cleanup ida and idr structures when shutting down idr and ida structures have internal memory allocated that needs to be freed when modules are removed. So call the proper idr_destroy() or ida_destroy() functions on the module exit path to free the memory. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Reviewed-by: Alex Elder <elder@linaro.org>