Skip to content

Commit

Permalink
[POWERPC] iSeries_init_IRQ non-PCI tidy
Browse files Browse the repository at this point in the history
ppc_md.init_IRQ is not called if it is NULL, so we don't need an empty
routine in the non PCI case.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Nov 8, 2007
1 parent f2205fb commit 18244cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/platforms/iseries/irq.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#ifndef _ISERIES_IRQ_H
#define _ISERIES_IRQ_H

#ifdef CONFIG_PCI
extern void iSeries_init_IRQ(void);
extern int iSeries_allocate_IRQ(HvBusNumber, HvSubBusNumber, u32);
extern void iSeries_activate_IRQs(void);
#else
#define iSeries_init_IRQ NULL
#endif
extern unsigned int iSeries_get_irq(void);

#endif /* _ISERIES_IRQ_H */
4 changes: 0 additions & 4 deletions arch/powerpc/platforms/iseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,6 @@ static void iseries_dedicated_idle(void)
}
}

#ifndef CONFIG_PCI
void __init iSeries_init_IRQ(void) { }
#endif

static void __iomem *iseries_ioremap(phys_addr_t address, unsigned long size,
unsigned long flags)
{
Expand Down

0 comments on commit 18244cf

Please sign in to comment.