irqchip: madera: Avoid double free of primary IRQ
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 11 Dec 2017 14:18:41 +0000 (14:18 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:28 +0000 (20:22 +0300)
The primary IRQ was requested from within regmap_irq and regmap_irq will
also free it, so the free here in remove is a duplicate.

Change-Id: I149062db0eb8f3b26af24a9b5c144a4b273c72b3
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
drivers/irqchip/irq-madera.c

index 40a348730762fec2995e60c59e14b48cb066b85b..7ae128fedc98e8783587b055e6bb62674c1f7100 100644 (file)
@@ -299,7 +299,6 @@ static int madera_irq_remove(struct platform_device *pdev)
        priv->madera->irq_dev = NULL;
 
        regmap_del_irq_chip(priv->irq, priv->irq_data);
-       free_irq(priv->irq, priv);
 
        return 0;
 }