[PATCH] mfd: Add free max8998->ono irq in max8998_irq_exit()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Axel Lin
Date: Wednesday, October 20, 2010 - 2:09 am

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mfd/max8998-irq.c |    3 +++
 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);
 }
-- 
1.7.2



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mfd: Add free max8998->ono irq in max8998_irq_exit(), Axel Lin, (Wed Oct 20, 2:09 am)