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

From: Axel Lin
Date: Wed Oct 20 2010 - 05:08:31 EST


Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
---
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



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/