]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
power: bq2419x: add ONESHOT irq flag
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Thu, 18 Jul 2013 04:03:39 +0000 (09:33 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:32:23 +0000 (13:32 -0700)
unable to register with threaded IRA handler unless ONESHOT flag is specified

Bug 1307664

Change-Id: I759d742e7c4dce41b35c82d2f80a9a73e5f1ae5e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/250514
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/power/bq2419x-charger.c

index e1fb7586c097e7feb57f1307a31f25530950761c..96b0759bf48c9226db32a5a617930d00e62c4ae0 100644 (file)
@@ -902,7 +902,7 @@ static int bq2419x_probe(struct i2c_client *client,
        }
 
        ret = request_threaded_irq(bq2419x->irq, NULL,
-               bq2419x_irq, IRQF_TRIGGER_FALLING,
+               bq2419x_irq, IRQF_ONESHOT | IRQF_TRIGGER_FALLING,
                        dev_name(bq2419x->dev), bq2419x);
        if (ret < 0) {
                dev_err(bq2419x->dev, "request IRQ %d fail, err = %d\n",