Skip to content

Commit

Permalink
powerpc: mac: pic: Use irqd_is_level_type()
Browse files Browse the repository at this point in the history
No need for a redundant sparse irq lookup. irqdata provides the same
information.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Mar 29, 2011
1 parent 212d786 commit 8c99f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powermac/pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c99f56

Please sign in to comment.