mfd: wcd9xxx: Continue to probe codec without interrupt
Don't treat as an error when no interrupt is configured.
Interrupts are not mandatory for codec driver and hardware.
Change-Id: Ic54f2cdf6f4916db89700b745d82e199bdccf48c
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
diff --git a/drivers/mfd/wcd9xxx-core.c b/drivers/mfd/wcd9xxx-core.c
index c95f281..a012577 100644
--- a/drivers/mfd/wcd9xxx-core.c
+++ b/drivers/mfd/wcd9xxx-core.c
@@ -1137,11 +1137,8 @@
wcd9xxx->irq_base = pdata->irq_base;
wcd9xxx_pgd_la = wcd9xxx->slim->laddr;
- if (pdata->num_irqs < TABLA_NUM_IRQS) {
- pr_err("%s: Error, not enough interrupt lines allocated\n",
- __func__);
- goto err_reset;
- }
+ if (pdata->num_irqs < TABLA_NUM_IRQS)
+ pr_warn("%s: Not enough interrupt lines allocated\n", __func__);
wcd9xxx->slim_slave = &pdata->slimbus_slave_device;