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: 4b45efe852 ("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>
This commit is contained in:
Andy Shevchenko 2019-06-21 15:56:31 +03:00 коммит произвёл Lee Jones
Родитель 01e4ecee03
Коммит 02f36911c1
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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);