irq_dev is still required for madera_free_irq as it will call
madera_map_irq, so don't clear it until after we are finished with it.
Change-Id: I747eea13d38d3b9acc8c522da44672d488a3d5a7
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
* it starts cleaning up all child drivers
*/
- priv->madera->irq_dev = NULL;
-
madera_free_irq(priv->madera, MADERA_IRQ_BOOT_DONE, priv->madera);
+ priv->madera->irq_dev = NULL;
+
regmap_del_irq_chip(priv->irq, priv->irq_data);
free_irq(priv->irq, priv);