aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm8350-irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/wm8350-irq.c')
-rw-r--r--drivers/mfd/wm8350-irq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/wm8350-irq.c b/drivers/mfd/wm8350-irq.c
index 2ea2b8b4c72a..c8df547c4747 100644
--- a/drivers/mfd/wm8350-irq.c
+++ b/drivers/mfd/wm8350-irq.c
@@ -445,6 +445,8 @@ int wm8350_register_irq(struct wm8350 *wm8350, int irq,
445 wm8350->irq[irq].data = data; 445 wm8350->irq[irq].data = data;
446 mutex_unlock(&wm8350->irq_mutex); 446 mutex_unlock(&wm8350->irq_mutex);
447 447
448 wm8350_unmask_irq(wm8350, irq);
449
448 return 0; 450 return 0;
449} 451}
450EXPORT_SYMBOL_GPL(wm8350_register_irq); 452EXPORT_SYMBOL_GPL(wm8350_register_irq);
@@ -454,6 +456,8 @@ int wm8350_free_irq(struct wm8350 *wm8350, int irq)
454 if (irq < 0 || irq > WM8350_NUM_IRQ) 456 if (irq < 0 || irq > WM8350_NUM_IRQ)
455 return -EINVAL; 457 return -EINVAL;
456 458
459 wm8350_mask_irq(wm8350, irq);
460
457 mutex_lock(&wm8350->irq_mutex); 461 mutex_lock(&wm8350->irq_mutex);
458 wm8350->irq[irq].handler = NULL; 462 wm8350->irq[irq].handler = NULL;
459 mutex_unlock(&wm8350->irq_mutex); 463 mutex_unlock(&wm8350->irq_mutex);