diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2010-12-02 17:06:49 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-22 14:05:22 +0300 |
commit | 88aec4f7b67b5889ba5b4beac2d2c1400451c318 (patch) | |
tree | 7f9cc0219c9ffb9b08b8ec9993b811c324e722a2 | |
parent | bd7c72ed18d719c1fb0fdf6ff9042d8ab78fdf71 (diff) | |
download | linux-88aec4f7b67b5889ba5b4beac2d2c1400451c318.tar.xz |
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.c | 2 |
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); |