Commit 1558b51eb7c813b3d90bdd68057403f7cac191fa

Authored by Axel Lin
Committed by Samuel Ortiz
1 parent 8220fe4cb2

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/mfd/max8998-irq.c
... ... @@ -250,6 +250,9 @@
250 250  
251 251 void max8998_irq_exit(struct max8998_dev *max8998)
252 252 {
  253 + if (max8998->ono)
  254 + free_irq(max8998->ono, max8998);
  255 +
253 256 if (max8998->irq)
254 257 free_irq(max8998->irq, max8998);
255 258 }