]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00209633-1 pfuze:pfuze driver support to mx6sl_arm2 which not use interrupt
authorRobin Gong <B38343@freescale.com>
Thu, 17 May 2012 04:29:38 +0000 (12:29 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:39 +0000 (08:34 +0200)
because mx6sl arm2 board didn't use pfuse INT, pfuze driver should judge if no
interrupt.
Signed-off-by: Robin Gong <B38343@freescale.com>
drivers/mfd/pfuze-core.c

index 96b62924adec0b37f184d2689ea06450eee12d48..9c7a988cf89b587d745d6c27b9e40953bcdc11ae 100644 (file)
@@ -501,9 +501,10 @@ static int pfuze_probe(struct i2c_client *client,
                if (ret)
                        goto err_mask;
        }
-       ret = request_threaded_irq(client->irq, NULL, pfuze_irq_thread,
-                                  IRQF_ONESHOT | IRQF_TRIGGER_LOW, "pfuze",
-                                  mc_pfuze);
+       if (client->irq)
+               ret = request_threaded_irq(client->irq, NULL, pfuze_irq_thread,
+                                       IRQF_ONESHOT | IRQF_TRIGGER_LOW, "pfuze",
+                                       mc_pfuze);
        if (ret) {
              err_mask:
              err_revision: