Commit 5d3fdeac authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

[MIPS] Remove dead code from irq_txx9.c

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 6c76988b
......@@ -105,13 +105,9 @@ static void txx9_irq_mask_ack(unsigned int irq)
unsigned int irq_nr = irq - TXX9_IRQ_BASE;
txx9_irq_mask(irq);
if (TXx9_IRCR_EDGE(txx9irq[irq_nr].mode)) {
/* clear edge detection */
u32 cr = __raw_readl(&txx9_ircptr->cr[irq_nr / 8]);
cr = (cr >> ((irq_nr & (8 - 1)) * 2)) & 3;
__raw_writel(TXx9_IRSCR_EIClrE | irq_nr,
&txx9_ircptr->scr);
}
if (unlikely(TXx9_IRCR_EDGE(txx9irq[irq_nr].mode)))
__raw_writel(TXx9_IRSCR_EIClrE | irq_nr, &txx9_ircptr->scr);
}
static int txx9_irq_set_type(unsigned int irq, unsigned int flow_type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment