regmap: irq: Remove domain on exit
authorMark Brown <broonie@linaro.org>
Wed, 22 Jan 2014 20:25:48 +0000 (20:25 +0000)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 12:17:10 +0000 (12:17 +0000)
irqdomain now supports removal of domains on exit so we can properly clean
up on deletion of a regmap irqchip.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap-irq.c

index 82692068d3cbe8dfa4cc5fdb6b544b74168255ea..52ce0c17c68baffa05516a5bdacccf9c4dbed3f3 100644 (file)
@@ -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);