diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2007-12-05 19:08:24 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-12-06 17:15:58 +0000 |
commit | 4b36673284f86c649b9d9ec5818b1912fde556b3 (patch) | |
tree | b8f4a90a85babb175b74091efae5c33beef94b75 /arch/mips/au1000/pb1200 | |
parent | f435a91e66e7776f0c73fca5af3cb87c61130ed6 (diff) |
[MIPS] Alchemy: replace ffs() with __ffs()
Fix havoc wrought by commit 56f621c7f6f735311eed3f36858b402013023c18 --
au_ffs() and ffs() are equivalent, that patch should have just replaced one
with another. Now replace ffs() with __ffs() which returns an unbiased bit
number.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000/pb1200')
-rw-r--r-- | arch/mips/au1000/pb1200/irqmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/au1000/pb1200/irqmap.c b/arch/mips/au1000/pb1200/irqmap.c index c096be4ed4e..8fcd0df86f9 100644 --- a/arch/mips/au1000/pb1200/irqmap.c +++ b/arch/mips/au1000/pb1200/irqmap.c @@ -74,7 +74,7 @@ irqreturn_t pb1200_cascade_handler( int irq, void *dev_id) bcsr->int_status = bisr; for( ; bisr; bisr &= (bisr-1) ) { - extirq_nr = PB1200_INT_BEGIN + ffs(bisr); + extirq_nr = PB1200_INT_BEGIN + __ffs(bisr); /* Ack and dispatch IRQ */ do_IRQ(extirq_nr); } |