From 8bd0d61aa363fb03ecdf08ce22d9fa54b37a31c1 Mon Sep 17 00:00:00 2001 From: Eunyoung Lee Date: Tue, 8 May 2018 19:03:49 +0900 Subject: [PATCH] [9610] fimc-is2: added IRQF_SHARED flag for sharing isr handler in PAFSTAT Change-Id: I6845bf73f25d1f71306b89ab034de95bcc2df813 Signed-off-by: Eunyoung Lee --- .../sensor/module_framework/pafstat/fimc-is-pafstat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/pafstat/fimc-is-pafstat.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/pafstat/fimc-is-pafstat.c index e00d9fdc652f..ca608f4f5041 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/pafstat/fimc-is-pafstat.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/pafstat/fimc-is-pafstat.c @@ -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) { -- 2.20.1