davinci: interrupts: get_irqnr_and_base: save an instruction

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:
Troy Kisky 2008-02-11 14:44:07 -07:00 committed by Kevin Hilman
parent 17eb157041
commit ce8ccaf0ef

View file

@ -23,9 +23,8 @@
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \tmp, [\base, #0x14]
mov \tmp, \tmp, lsr #2
movs \tmp, \tmp, lsr #2
sub \irqnr, \tmp, #1
cmp \tmp, #0
.endm
.macro irq_prio_table