summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8998-irq.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-10-20 17:09:56 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2010-10-29 00:30:36 +0200
commit1558b51eb7c813b3d90bdd68057403f7cac191fa (patch)
tree51eba558b67331a0e592a4858502413146760e06 /drivers/mfd/max8998-irq.c
parent8220fe4cb25d0177bd0795a516d2023799008ca0 (diff)
downloadop-kernel-dev-1558b51eb7c813b3d90bdd68057403f7cac191fa.zip
op-kernel-dev-1558b51eb7c813b3d90bdd68057403f7cac191fa.tar.gz
mfd: Add free max8998->ono irq in max8998_irq_exit()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max8998-irq.c')
-rw-r--r--drivers/mfd/max8998-irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/max8998-irq.c b/drivers/mfd/max8998-irq.c
index 346fd29..45bfe77 100644
--- a/drivers/mfd/max8998-irq.c
+++ b/drivers/mfd/max8998-irq.c
@@ -250,6 +250,9 @@ int max8998_irq_init(struct max8998_dev *max8998)
void max8998_irq_exit(struct max8998_dev *max8998)
{
+ if (max8998->ono)
+ free_irq(max8998->ono, max8998);
+
if (max8998->irq)
free_irq(max8998->irq, max8998);
}
OpenPOWER on IntegriCloud