mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
mfd: intel-lpss: Release IDA resources
[ Upstream commit02f36911c1
] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
be4a793b10
commit
92cbf173ea
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,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);
|
||||
|
|
Loading…
Reference in a new issue