mfd: max77663: Fix irq flags for ARM GIC
Jin Park [Thu, 17 Nov 2011 04:08:27 +0000 (13:08 +0900)]
The Tegra IRQ driver was modified to use ARM GIC driver on kernel-2.6.39.
After that, it has to pass correcting irq flags for ARM GIC when irq request.

Bug 892696

Change-Id: I92e3c24309c2528db4adfd69041f601d627a856d
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/65695
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R38a176520f7216c5637ecc0c8dee3f24f648ac9e

drivers/mfd/max77663-core.c

index e8b400a..d428642 100644 (file)
@@ -1033,7 +1033,6 @@ static struct irq_chip max77663_irq_chip = {
 
 static int max77663_irq_init(struct max77663_chip *chip)
 {
-       unsigned long flags = IRQF_TRIGGER_LOW | IRQF_ONESHOT | IRQF_DISABLED;
        u32 temp;
        int i, ret = 0;
 
@@ -1089,7 +1088,7 @@ static int max77663_irq_init(struct max77663_chip *chip)
        }
 
        ret = request_threaded_irq(chip->i2c_power->irq, NULL, max77663_irq,
-                                  flags, "max77663", chip);
+                                  IRQF_ONESHOT, "max77663", chip);
        if (ret) {
                dev_err(chip->dev, "irq_init: Failed to request irq %d\n",
                        chip->i2c_power->irq);