Skip to content

Commit

Permalink
mfd: Fix ab8500-core interrupt ffs bit bug
Browse files Browse the repository at this point in the history
We want to find the first set bit on value, not status.

Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mattias Wallin authored and Samuel Ortiz committed Dec 22, 2010
1 parent bd7c72e commit 88aec4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/ab8500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static irqreturn_t ab8500_irq(int irq, void *dev)
continue;

do {
int bit = __ffs(status);
int bit = __ffs(value);
int line = i * 8 + bit;

handle_nested_irq(ab8500->irq_base + line);
Expand Down

0 comments on commit 88aec4f

Please sign in to comment.