diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | 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 346fd296cf7..45bfe77b639 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) | |||
250 | 250 | ||
251 | void max8998_irq_exit(struct max8998_dev *max8998) | 251 | void max8998_irq_exit(struct max8998_dev *max8998) |
252 | { | 252 | { |
253 | if (max8998->ono) | ||
254 | free_irq(max8998->ono, max8998); | ||
255 | |||
253 | if (max8998->irq) | 256 | if (max8998->irq) |
254 | free_irq(max8998->irq, max8998); | 257 | free_irq(max8998->irq, max8998); |
255 | } | 258 | } |