projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212d786
)
powerpc: mac: pic: Use irqd_is_level_type()
author
Thomas Gleixner
<tglx@linutronix.de>
Fri, 25 Mar 2011 15:03:07 +0000
(16:03 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 29 Mar 2011 12:48:09 +0000
(14:48 +0200)
No need for a redundant sparse irq lookup. irqdata provides the same
information.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/powerpc/platforms/powermac/pic.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/powermac/pic.c
b/arch/powerpc/platforms/powermac/pic.c
index
22f45d7
..
4ce146f
100644
(file)
--- a/
arch/powerpc/platforms/powermac/pic.c
+++ b/
arch/powerpc/platforms/powermac/pic.c
@@
-157,7
+157,7
@@
static unsigned int pmac_startup_irq(struct irq_data *d)
int i = src >> 5;
raw_spin_lock_irqsave(&pmac_pic_lock, flags);
- if (
(irq_to_desc(d->irq)->status & IRQ_LEVEL) == 0
)
+ if (
!irqd_is_level_type(d)
)
out_le32(&pmac_irq_hw[i]->ack, bit);
__set_bit(src, ppc_cached_irq_mask);
__pmac_set_irq_mask(src, 0);