From: Mattias Wallin Date: Thu, 2 Dec 2010 14:06:49 +0000 (+0100) Subject: mfd: Fix ab8500-core interrupt ffs bit bug X-Git-Tag: v2.6.37-rc8~27^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=88aec4f7b67b5889ba5b4beac2d2c1400451c318;p=~shefty%2Frdma-dev.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index dbe1c93c1af..d9640a623ff 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);