Skip to contentSkip to conversation

regmap: irq: Remove domain on exit

PATCH New Mark Brown 1 participant 1 message Jan 22, 2014

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 regmap: irq: Remove domain on exit

From: Mark Brown <[email protected]>

irqdomain now supports removal of domains on exit so we can properly clean up on deletion of a regmap irqchip.

---
 drivers/base/regmap/regmap-irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regmap-irq.c +1 -1
index 82692068d3cb..52ce0c17c68b 100644
@@ -533,7 +533,7 @@ void regmap_del_irq_chip(int irq, struct regmap_irq_chip_data *d)
 		return;
 
 	free_irq(irq, d);
-	/* We should unmap the domain but... */
+	irq_domain_remove(d->domain);
 	kfree(d->wake_buf);
 	kfree(d->mask_buf_def);
 	kfree(d->mask_buf);
Signature · 1 line
1.8.5.3