projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba2b3de
)
mfd: stmpe: Remove IRQ domain upon removal
author
Alexander Stein
<alexander.stein@ew.tq-group.com>
Fri, 25 Jul 2025 07:07:48 +0000
(09:07 +0200)
committer
Lee Jones
<lee@kernel.org>
Wed, 1 Oct 2025 09:28:05 +0000
(10:28 +0100)
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>
drivers/mfd/stmpe.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/stmpe.c
b/drivers/mfd/stmpe.c
index
819d19d
..
e1165f6
100644
(file)
--- 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))