linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: fix gpmc request_irq
@ 2012-05-18  4:43 Ming Lei
  2012-05-18  7:03 ` Shilimkar, Santosh
  0 siblings, 1 reply; 11+ messages in thread
From: Ming Lei @ 2012-05-18  4:43 UTC (permalink / raw)
  To: linux-arm-kernel

The IRQ52 on OMAP2+ is not a shared interrupt line. If IRQF_SHARED
is passed to request_irq and dev_id is set as NULL, request_irq will
return -EINVAL.

This patch just removes the flag of IRQF_SHARED to make the irq
registration successful.

Cc: Kevin Hilman <khilman@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
 arch/arm/mach-omap2/gpmc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 2286410..e45d31b 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -769,7 +769,7 @@ static int __init gpmc_init(void)
 		irq++;
 	}
 
-	ret = request_irq(gpmc_irq, gpmc_handle_irq, IRQF_SHARED, "gpmc", NULL);
+	ret = request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL);
 	if (ret)
 		pr_err("gpmc: irq-%d could not claim: err %d\n",
 						gpmc_irq, ret);
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-05-18 11:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18  4:43 [PATCH] ARM: OMAP2+: fix gpmc request_irq Ming Lei
2012-05-18  7:03 ` Shilimkar, Santosh
2012-05-18  7:16   ` Mohammed, Afzal
2012-05-18  7:19     ` Shilimkar, Santosh
2012-05-18  7:40       ` Ming Lei
2012-05-18  7:43         ` Shilimkar, Santosh
2012-05-18  9:04           ` Ming Lei
2012-05-18 10:13             ` Shilimkar, Santosh
2012-05-18 10:51               ` Mohammed, Afzal
2012-05-18 10:59                 ` Shilimkar, Santosh
2012-05-18 11:47               ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).