Skip to contentSkip to conversation

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

PATCH In review Axel Lin 2 participants 2 messages Oct 20, 2010 – Oct 21, 2010 Multifunction devices (MFD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mfd: Add free max8998->ono irq in max8998_irq_exit()

---
 drivers/mfd/max8998-irq.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mfd/max8998-irq.c +3 -0
index 346fd29..45bfe77 100644
@@ -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);
 }
Signature · 1 line
1.7.2
#1 lore raw

Hi Axel,

Quoted 1 line · Axel Lin

Patch applied, many thanks.

Cheers,
Samuel.

Quoted 23 lines
---
 drivers/mfd/max8998-irq.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mfd/max8998-irq.c +3 -0
index 346fd29..45bfe77 100644
@@ -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);
 }
Signature · 1 line
1.7.2
Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/