Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 773e20d5 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

powerpc: xilinx: Cleanup flow type handling



The core irq_set_type() function updates the flow type when the chip
callback returns 0. So setting the type is bogus. The core also
updates the LEVEL flag.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 1ac06cda
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -79,12 +79,6 @@ static void xilinx_intc_mask(struct irq_data *d)

static int xilinx_intc_set_type(struct irq_data *d, unsigned int flow_type)
{
	struct irq_desc *desc = irq_to_desc(d->irq);

	desc->status &= ~(IRQ_TYPE_SENSE_MASK | IRQ_LEVEL);
	desc->status |= flow_type & IRQ_TYPE_SENSE_MASK;
	if (flow_type & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW))
		desc->status |= IRQ_LEVEL;
	return 0;
}