From: Robin Gong Date: Thu, 17 May 2012 04:29:38 +0000 (+0800) Subject: ENGR00209633-1 pfuze:pfuze driver support to mx6sl_arm2 which not use interrupt X-Git-Tag: v3.0.35-fsl~1026 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b9659591368856529d736ce421cb82fc5180b8a6;p=karo-tx-linux.git 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 --- 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: