Skip to content

Commit

Permalink
mfd: intel-lpss: Release IDA resources
Browse files Browse the repository at this point in the history
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: 4b45efe ("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>
  • Loading branch information
Andy Shevchenko authored and Lee Jones committed Jul 2, 2019
1 parent 01e4ece commit 02f3691
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/intel-lpss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02f3691

Please sign in to comment.