summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc/bus/dprc-driver.c
diff options
context:
space:
mode:
authorStuart Yoder <stuart.yoder@nxp.com>2016-06-22 16:40:49 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-26 17:14:03 -0700
commitae34934f9c8c504df6c0b412352e2850dcba495e (patch)
tree7b5d829259d016855983c3bf7250051ac3b700f8 /drivers/staging/fsl-mc/bus/dprc-driver.c
parentf93627146f0e371093966ed3d44c065aa077cfb1 (diff)
downloadop-kernel-dev-ae34934f9c8c504df6c0b412352e2850dcba495e.zip
op-kernel-dev-ae34934f9c8c504df6c0b412352e2850dcba495e.tar.gz
staging: fsl-mc: dprc: add missing irq free
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>
Diffstat (limited to 'drivers/staging/fsl-mc/bus/dprc-driver.c')
-rw-r--r--drivers/staging/fsl-mc/bus/dprc-driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c
index 1a6bcc4..96ee1b7 100644
--- a/drivers/staging/fsl-mc/bus/dprc-driver.c
+++ b/drivers/staging/fsl-mc/bus/dprc-driver.c
@@ -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);
}
OpenPOWER on IntegriCloud