diff options
author | Robin Gong <B38343@freescale.com> | 2012-05-17 12:29:38 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:37:37 +0800 |
commit | c0f28bd786f0c899f4d3cbc1f3ef14a4670fe433 (patch) | |
tree | 2d793ded56422b3c9b53219c96dc23b640f7cf79 /drivers/mfd | |
parent | 7b6c0631d4392081690fa8c17f4805862bd0145a (diff) |
ENGR00209633-1 pfuze:pfuze driver support to mx6sl_arm2 which not use interrupt
because mx6sl arm2 board didn't use pfuse INT, pfuze driver should judge if no
interrupt.
Signed-off-by: Robin Gong <B38343@freescale.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/pfuze-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/pfuze-core.c b/drivers/mfd/pfuze-core.c index 96b62924adec..9c7a988cf89b 100644 --- a/drivers/mfd/pfuze-core.c +++ b/drivers/mfd/pfuze-core.c @@ -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: |