]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mfd: intel-lpss: Release IDA resources
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Jun 2019 12:56:31 +0000 (15:56 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitb2f9710aba359806b7fe910d8cfe3919805758e6
tree357e2674c633e8017a6b8b1ca551e29c70f73a95
parent71286830a53004e430294f870be87199c7276665
mfd: intel-lpss: Release IDA resources

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 02f36911c1b41fcd8779fa0c135aab0554333fa5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mfd/intel-lpss.c