summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/audio_manager.c
diff options
context:
space:
mode:
authorDinko Mironov <dmironov@mm-sol.com>2016-05-05 19:58:22 +0300
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-05 13:33:20 -0700
commitc77f85bbc91acafeafd4143a23a225fe81c7e294 (patch)
treef4d2f8f05e57670692d221d6277d27f811b41d10 /drivers/staging/greybus/audio_manager.c
parentee2f2074fdb20d4939c943d0372f3751d833dedf (diff)
greybus: audio: Fix incorrect counting of 'ida'
Function gb_audio_manager_remove_all() to remove all audio modules, doesn't control correctly 'ida' counting. Signed-off-by: Dinko Mironov <dmironov@mm-sol.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_manager.c')
-rw-r--r--drivers/staging/greybus/audio_manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/audio_manager.c b/drivers/staging/greybus/audio_manager.c
index 619bdee46ee5..9def014cd47c 100644
--- a/drivers/staging/greybus/audio_manager.c
+++ b/drivers/staging/greybus/audio_manager.c
@@ -91,6 +91,7 @@ void gb_audio_manager_remove_all(void)
list_for_each_entry_safe(module, next, &modules_list, list) {
list_del(&module->list);
kobject_put(&module->kobj);
+ ida_simple_remove(&module_id, module->id);
}
is_empty = list_empty(&modules_list);