Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Stein and committed by
Lee Jones
57bf2a31 ba2b3de7

+3
+3
drivers/mfd/stmpe.c
··· 1485 1485 1486 1486 void stmpe_remove(struct stmpe *stmpe) 1487 1487 { 1488 + if (stmpe->domain) 1489 + irq_domain_remove(stmpe->domain); 1490 + 1488 1491 if (!IS_ERR(stmpe->vio) && regulator_is_enabled(stmpe->vio)) 1489 1492 regulator_disable(stmpe->vio); 1490 1493 if (!IS_ERR(stmpe->vcc) && regulator_is_enabled(stmpe->vcc))