mfd: intel-lpss: Release IDA resources
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Jun 2019 12:56:31 +0000 (15:56 +0300)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commit02f36911c1b41fcd8779fa0c135aab0554333fa5
tree9ab177f6e8ff193d6b8cbcaf2e2bfba91e535d6e
parent01e4ecee03aa81ec3565d70c80cd1282088fc5a6
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>
drivers/mfd/intel-lpss.c