diff options
author | Anatoly Palto <a.palto@sam-solutions.net> | 2013-04-05 10:50:11 +0000 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2013-11-07 12:19:32 -0500 |
commit | 9d252c06f35fc47f8bd1989a6d7d8ea3ce9cb7d6 (patch) | |
tree | db700a47447a1ffe4bcaed0548faeffb2acb5e66 /drivers | |
parent | 68b64b9f25a2248d57a2d744933c85d11a69ee01 (diff) |
Fix mistake in da9063 driver to work onkeyevents
Signed-off-by: Uladzimir Bely <u.bely@sam-solutions.net>
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/da9063-irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c index fb706a408a60..0e0479be0c43 100644 --- a/drivers/mfd/da9063-irq.c +++ b/drivers/mfd/da9063-irq.c @@ -233,9 +233,9 @@ static irqreturn_t da9063_irq_thread(int irq_id, void *da9063_data) return IRQ_NONE; } - for (i = DA9063_NUM_IRQ; i >= 0; i--) { + for (i = DA9063_NUM_IRQ - 1; i >= 0; i--) { irq = &da9063_irqs[i + DA9063_IRQ_BASE_OFFSET]; - if (!(irq->mask & da9063->irq_masks[irq->reg]) && + if ((irq->mask & da9063->irq_masks[irq->reg]) && irq->mask & events[irq->reg]) { handle_nested_irq(da9063->irq_base + i); error_detect = false; |