summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMattias Wallin <mattias.wallin@stericsson.com>2010-12-02 15:06:49 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-22 12:05:22 +0100
commit88aec4f7b67b5889ba5b4beac2d2c1400451c318 (patch)
tree7f9cc0219c9ffb9b08b8ec9993b811c324e722a2 /drivers/mfd
parentmfd: Supply IRQ base for WM832x devices (diff)
downloadlinux-88aec4f7b67b5889ba5b4beac2d2c1400451c318.tar.xz
linux-88aec4f7b67b5889ba5b4beac2d2c1400451c318.zip
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>
Diffstat (limited to 'drivers/mfd')
-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)
continue;
do {
- int bit = __ffs(status);
+ int bit = __ffs(value);
int line = i * 8 + bit;
handle_nested_irq(ab8500->irq_base + line);