summaryrefslogtreecommitdiffstats
path: root/drivers/mcb
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2015-10-28 08:22:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-29 09:02:16 +0900
commit169883a63eb7e34e8e1c92fd451f34a5635c29ad (patch)
treecedd3ceb58523a502ac3d2771adeb76397ad3fbe /drivers/mcb
parentbf25c19979b2ee1019201b809e93b6bca9947cfd (diff)
downloadlinux-169883a63eb7e34e8e1c92fd451f34a5635c29ad.tar.gz
linux-169883a63eb7e34e8e1c92fd451f34a5635c29ad.tar.bz2
linux-169883a63eb7e34e8e1c92fd451f34a5635c29ad.zip
mcb: Destroy IDA on module unload
Destroy mcb_ida on module_unload Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mcb')
-rw-r--r--drivers/mcb/mcb-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c
index 9018ab83517a..a4be451074e5 100644
--- a/drivers/mcb/mcb-core.c
+++ b/drivers/mcb/mcb-core.c
@@ -409,6 +409,7 @@ static int mcb_init(void)
static void mcb_exit(void)
{
+ ida_destroy(&mcb_ida);
bus_unregister(&mcb_bus_type);
}