summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65910-irq.c
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2011-12-14 11:35:35 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-09 00:37:40 +0100
commit1e351a95b6fda20e16b64a698bae505765080308 (patch)
treee44a5981279a36b911a14c7b91d6ee290222c712 /drivers/mfd/tps65910-irq.c
parentmfd: Add power off functionality to TWL (diff)
downloadlinux-1e351a95b6fda20e16b64a698bae505765080308.tar.xz
linux-1e351a95b6fda20e16b64a698bae505765080308.zip
mfd: Make TPS65910 usable without interrupts
TPS65910 can be used without interrupts. Hence let probe succeed in case interrupt can't be configured and let Kernel only to complain about it Signed-off-by: Afzal Mohammed <afzal@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65910-irq.c')
-rw-r--r--drivers/mfd/tps65910-irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/tps65910-irq.c b/drivers/mfd/tps65910-irq.c
index a56be931551c..95c0d7978bec 100644
--- a/drivers/mfd/tps65910-irq.c
+++ b/drivers/mfd/tps65910-irq.c
@@ -215,6 +215,7 @@ int tps65910_irq_init(struct tps65910 *tps65910, int irq,
int tps65910_irq_exit(struct tps65910 *tps65910)
{
- free_irq(tps65910->chip_irq, tps65910);
+ if (tps65910->chip_irq)
+ free_irq(tps65910->chip_irq, tps65910);
return 0;
}