ARM:OMAP:AM33XX: Add AM33XX_IRQ_GPMC0 as gpmc_irq for AM33XX
authorAmit Shah <amit.shah@ti.com>
Wed, 16 Nov 2011 08:17:20 +0000 (13:47 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:36 +0000 (00:44 +0530)
uio_pruss driver was unable to load due to gpmc driver bug wherein the gpmc_irq for AM33XX was being set to INT_34XX_GPMC_IRQ.
Signed-off-by: Amit Shah <amit.shah@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/gpmc.c

index b457f161e8441ef191bfbd52992e3d6b4425a628..ec61ed8e3180c7c6d50a90bd8560c8fa5f29766d 100644 (file)
@@ -705,11 +705,13 @@ static int __init gpmc_init(void)
                gpmc_irq = INT_34XX_GPMC_IRQ;
        } else if (cpu_is_omap34xx()) {
                ck = "gpmc_fck";
-               if (cpu_is_am33xx())
+               if (cpu_is_am33xx()) {
                        l = OMAP44XX_GPMC_BASE;
-               else
+                       gpmc_irq = AM33XX_IRQ_GPMC0;
+               } else {
                        l = OMAP34XX_GPMC_BASE;
-               gpmc_irq = INT_34XX_GPMC_IRQ;
+                       gpmc_irq = INT_34XX_GPMC_IRQ;
+               }
        } else if (cpu_is_omap44xx()) {
                ck = "gpmc_ck";
                l = OMAP44XX_GPMC_BASE;