staging: fsl-mc: dprc: add missing irq free
authorStuart Yoder <stuart.yoder@nxp.com>
Wed, 22 Jun 2016 21:40:49 +0000 (16:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2016 00:14:03 +0000 (17:14 -0700)
add missing free of the Linux irq when tearing down interrupts

Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dprc-driver.c

index 1a6bcc415a118c16d5c20b2e2d472075c860953a..96ee1b7ce3609418bc1a21944c2c6c30c43c080a 100644 (file)
@@ -760,7 +760,12 @@ error_cleanup_msi_domain:
  */
 static void dprc_teardown_irq(struct fsl_mc_device *mc_dev)
 {
+       struct fsl_mc_device_irq *irq = mc_dev->irqs[0];
+
        (void)disable_dprc_irq(mc_dev);
+
+       devm_free_irq(&mc_dev->dev, irq->msi_desc->irq, &mc_dev->dev);
+
        fsl_mc_free_irqs(mc_dev);
 }