summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAndy Shevchenko2019-06-21 14:56:31 +0200
committerLee Jones2019-07-02 13:11:31 +0200
commit02f36911c1b41fcd8779fa0c135aab0554333fa5 (patch)
tree9ab177f6e8ff193d6b8cbcaf2e2bfba91e535d6e /drivers/mfd
parentmfd: intel-lpss: Add Intel Elkhart Lake PCH PCI IDs (diff)
downloadkernel-qcow2-linux-02f36911c1b41fcd8779fa0c135aab0554333fa5.tar.gz
kernel-qcow2-linux-02f36911c1b41fcd8779fa0c135aab0554333fa5.tar.xz
kernel-qcow2-linux-02f36911c1b41fcd8779fa0c135aab0554333fa5.zip
mfd: intel-lpss: Release IDA resources
ida instances allocate some internal memory for ->free_bitmap in addition to the base 'struct ida'. Use ida_destroy() to release that memory at module_exit(). Fixes: 4b45efe85263 ("mfd: Add support for Intel Sunrisepoint LPSS devices") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/intel-lpss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c
index fc6aa4c50144..2ba6df9d83af 100644
--- a/drivers/mfd/intel-lpss.c
+++ b/drivers/mfd/intel-lpss.c
@@ -546,6 +546,7 @@ module_init(intel_lpss_init);
static void __exit intel_lpss_exit(void)
{
+ ida_destroy(&intel_lpss_devid_ida);
debugfs_remove(intel_lpss_debugfs);
}
module_exit(intel_lpss_exit);