[9610] fimc-is2: added IRQF_SHARED flag for sharing isr handler in PAFSTAT
authorEunyoung Lee <ey470.lee@samsung.com>
Tue, 8 May 2018 10:03:49 +0000 (19:03 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:47:38 +0000 (17:47 +0900)
Change-Id: I6845bf73f25d1f71306b89ab034de95bcc2df813
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/pafstat/fimc-is-pafstat.c

index e00d9fdc652fae7f4bb068d34841fb3d44eb92fa..ca608f4f5041fbd5ef6cace1e0dd4eab3d838945 100644 (file)
@@ -96,6 +96,9 @@ static irqreturn_t fimc_is_isr_pafstat(int irq, void *data)
        u32 ret;
 
        pafstat = data;
+       if (pafstat == NULL)
+               return IRQ_NONE;
+
        irq_src = pafstat_hw_g_irq_src(pafstat->regs);
        irq_mask = pafstat_hw_g_irq_mask(pafstat->regs);
        status = (~irq_mask) & irq_src;
@@ -559,7 +562,7 @@ static int __init pafstat_probe(struct platform_device *pdev)
        snprintf(irq_name, sizeof(irq_name), "pafstat%d", id);
        ret = request_irq(pafstat->irq,
                        fimc_is_isr_pafstat,
-                       FIMC_IS_HW_IRQ_FLAG,
+                       FIMC_IS_HW_IRQ_FLAG | IRQF_SHARED,
                        irq_name,
                        pafstat);
        if (ret) {