Skip to content

Commit

Permalink
sh: mach-se: Fix up irq_desc reference.
Browse files Browse the repository at this point in the history
The irq_desc needs to be accessed with irq_to_desc(), this fixes up a
build error with irq_desc being undefined.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 30, 2010
1 parent 396c56a commit 97b1977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sh/boards/mach-se/7206/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ static void enable_se7206_irq(unsigned int irq)
static void eoi_se7206_irq(unsigned int irq)
{
unsigned short sts0,sts1;
struct irq_desc *desc = irq_to_desc(irq);

if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
enable_se7206_irq(irq);
/* FPGA isr clear */
sts0 = __raw_readw(INTSTS0);
Expand Down

0 comments on commit 97b1977

Please sign in to comment.