aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Wallin <mattias.wallin@stericsson.com>2010-12-02 09:06:49 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-22 06:05:22 -0500
commit88aec4f7b67b5889ba5b4beac2d2c1400451c318 (patch)
tree7f9cc0219c9ffb9b08b8ec9993b811c324e722a2
parentbd7c72ed18d719c1fb0fdf6ff9042d8ab78fdf71 (diff)
mfd: Fix ab8500-core interrupt ffs bit bug
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>
-rw-r--r--drivers/mfd/ab8500-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index dbe1c93c1af3..d9640a623ff4 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -303,7 +303,7 @@ static irqreturn_t ab8500_irq(int irq, void *dev)
303 continue; 303 continue;
304 304
305 do { 305 do {
306 int bit = __ffs(status); 306 int bit = __ffs(value);
307 int line = i * 8 + bit; 307 int line = i * 8 + bit;
308 308
309 handle_nested_irq(ab8500->irq_base + line); 309 handle_nested_irq(ab8500->irq_base + line);