powerpc: Use proper accessors for IRQ_* flags
Use the proper accessors instead of open access to irq_desc. Converted with coccinelle. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
@@ -136,14 +136,13 @@ static void beatic_pic_host_unmap(struct irq_host *h, unsigned int virq)
|
||||
static int beatic_pic_host_map(struct irq_host *h, unsigned int virq,
|
||||
irq_hw_number_t hw)
|
||||
{
|
||||
struct irq_desc *desc = irq_to_desc(virq);
|
||||
int64_t err;
|
||||
|
||||
err = beat_construct_and_connect_irq_plug(virq, hw);
|
||||
if (err < 0)
|
||||
return -EIO;
|
||||
|
||||
desc->status |= IRQ_LEVEL;
|
||||
irq_set_status_flags(virq, IRQ_LEVEL);
|
||||
set_irq_chip_and_handler(virq, &beatic_pic, handle_fasteoi_irq);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user