diff options
author | Richard Zhu <hongxing.zhu@nxp.com> | 2017-03-22 10:19:57 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:26:04 +0800 |
commit | 1ebbdcb061883d9cf15d93ac3f8face11444584f (patch) | |
tree | dd5e04b5df0216daae1c9bde4de97897496ec404 /arch/arm/mach-imx | |
parent | c0b7202b834384da153dd8fe5d87d27e516b4dce (diff) |
MLK-14501 ARM: imx: mu: pass real dev id when request shared irq
Pass the real dev id when the shared irq is request.
Otherwise, the request_irq would be failed.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/mu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mu.c b/arch/arm/mach-imx/mu.c index f8786c2c37b0..4ab7ef2f9d62 100644 --- a/arch/arm/mach-imx/mu.c +++ b/arch/arm/mach-imx/mu.c @@ -332,6 +332,7 @@ static int imx_mu_probe(struct platform_device *pdev) int ret; u32 irq; struct device_node *np; + struct device *dev = &pdev->dev; np = of_find_compatible_node(NULL, NULL, "fsl,imx6sx-mu"); mu_base = of_iomap(np, 0); @@ -343,7 +344,7 @@ static int imx_mu_probe(struct platform_device *pdev) else irq = platform_get_irq(pdev, 0); ret = request_irq(irq, imx_mu_isr, - IRQF_EARLY_RESUME | IRQF_SHARED, "imx-mu", NULL); + IRQF_EARLY_RESUME | IRQF_SHARED, "imx-mu", dev); if (ret) { pr_err("%s: register interrupt %d failed, rc %d\n", __func__, irq, ret); |