Skip to content

Commit

Permalink
Blackfin: only build show_interrupts() when procfs is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Jun 23, 2009
1 parent 2657921 commit 46f288a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/blackfin/kernel/irqchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static struct irq_desc bad_irq_desc = {
#error "Blackfin architecture does not support CONFIG_CPUMASK_OFFSTACK."
#endif

#ifdef CONFIG_PROC_FS
int show_interrupts(struct seq_file *p, void *v)
{
int i = *(loff_t *) v, j;
Expand Down Expand Up @@ -85,6 +86,7 @@ int show_interrupts(struct seq_file *p, void *v)
}
return 0;
}
#endif

/*
* do_IRQ handles all hardware IRQs. Decoded IRQs should not
Expand Down

0 comments on commit 46f288a

Please sign in to comment.