]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
regulators: max77621: set irq to be sharable
authorKerwin Wan <kerwinw@nvidia.com>
Thu, 4 Sep 2014 04:35:58 +0000 (21:35 -0700)
committerSeema Khowala <seemaj@nvidia.com>
Thu, 4 Sep 2014 18:30:44 +0000 (11:30 -0700)
System may have more than one pmic and the interrupt
from them may be routed to the same place. Then the irq
should be set to be sharable to make sure irq will be
registered successfully.

Change-Id: I8f326387e20bb23c149820865890a194837f9774
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/495458
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/regulator/max8973-regulator.c

index 1b821593c61d09f795052691404d786cf8737fe6..38d883d32d54b11a383de1bcedd23bfa4b0e3a56 100644 (file)
@@ -489,9 +489,9 @@ static int max8973_thermal_init(struct max8973_chip *mchip)
        }
 
        ret = request_threaded_irq(mchip->irq, NULL, max8973_thermal_irq,
-                       IRQF_ONESHOT, dev_name(mchip->dev), mchip);
+                       IRQF_ONESHOT | IRQF_SHARED, dev_name(mchip->dev), mchip);
        if (ret < 0) {
-               dev_err(mchip->dev, "request irq %d failed: %dn",
+               dev_err(mchip->dev, "request irq %d failed: %d\n",
                        mchip->irq, ret);
                goto fail;
        }