diff options
author | Afzal Mohammed <afzal@ti.com> | 2011-12-14 14:35:35 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-09 03:37:40 +0400 |
commit | 1e351a95b6fda20e16b64a698bae505765080308 (patch) | |
tree | e44a5981279a36b911a14c7b91d6ee290222c712 /drivers/mfd/tps65910-irq.c | |
parent | 26cc3ab984cd00e95cb58ba5aaea4238ea56c700 (diff) | |
download | linux-1e351a95b6fda20e16b64a698bae505765080308.tar.xz |
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; } |