aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@ew.tq-group.com>2025-07-25 09:07:48 +0200
committerLee Jones <lee@kernel.org>2025-10-01 10:28:05 +0100
commit57bf2a312ab2d0bc8ee0f4e8a447fa94a2fc877d (patch)
tree2714b4e681c8ad2a62a620b3f64739d731636fb9 /drivers/mfd
parentmfd: Kconfig: Fix spelling mistake "infontainment" -> "infotainment" (diff)
downloadlinux-57bf2a312ab2d0bc8ee0f4e8a447fa94a2fc877d.tar.gz
linux-57bf2a312ab2d0bc8ee0f4e8a447fa94a2fc877d.zip
mfd: stmpe: Remove IRQ domain upon removal
The IRQ domain is (optionally) added during stmpe_probe, but never removed. Add the call to stmpe_remove. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20250725070752.338376-1-alexander.stein@ew.tq-group.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/stmpe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 819d19dc9b4a..e1165f63aeda 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -1485,6 +1485,9 @@ int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum)
void stmpe_remove(struct stmpe *stmpe)
{
+ if (stmpe->domain)
+ irq_domain_remove(stmpe->domain);
+
if (!IS_ERR(stmpe->vio) && regulator_is_enabled(stmpe->vio))
regulator_disable(stmpe->vio);
if (!IS_ERR(stmpe->vcc) && regulator_is_enabled(stmpe->vcc))