提交 ae34934f 编写于 作者: S Stuart Yoder 提交者: Greg Kroah-Hartman

staging: fsl-mc: dprc: add missing irq free

add missing free of the Linux irq when tearing down interrupts
Signed-off-by: NStuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f9362714
...@@ -760,7 +760,12 @@ static int dprc_probe(struct fsl_mc_device *mc_dev) ...@@ -760,7 +760,12 @@ static int dprc_probe(struct fsl_mc_device *mc_dev)
*/ */
static void dprc_teardown_irq(struct fsl_mc_device *mc_dev) 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); (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); fsl_mc_free_irqs(mc_dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册