From: Mattias Wallin Date: Thu, 2 Dec 2010 14:06:49 +0000 (+0100) Subject: mfd: Fix ab8500-core interrupt ffs bit bug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88aec4f7b67b5889ba5b4beac2d2c1400451c318;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 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);