From 1558b51eb7c813b3d90bdd68057403f7cac191fa Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@gmail.com>
Date: Wed, 20 Oct 2010 17:09:56 +0800
Subject: [PATCH] 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>
---
 drivers/mfd/max8998-irq.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mfd/max8998-irq.c b/drivers/mfd/max8998-irq.c
index 346fd296cf7d..45bfe77b639b 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);
 }