diff options
author | Afzal Mohammed <afzal@ti.com> | 2011-12-14 11:35:35 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-09 00:37:40 +0100 |
commit | 1e351a95b6fda20e16b64a698bae505765080308 (patch) | |
tree | e44a5981279a36b911a14c7b91d6ee290222c712 /drivers/mfd/tps65910-irq.c | |
parent | mfd: Add power off functionality to TWL (diff) | |
download | linux-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.c | 3 |
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; } |