sparc32: cleanup code for pci init
Move the ifdeffery to a header file to make the logic more obvious where we decide between PCI or SBUS init Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
db1cdd146a
commit
06010fb588
@@ -607,14 +607,11 @@ void __init init_IRQ(void)
|
||||
break;
|
||||
|
||||
case sun4m:
|
||||
#ifdef CONFIG_PCI
|
||||
pcic_probe();
|
||||
if (pcic_present()) {
|
||||
if (pcic_present())
|
||||
sun4m_pci_init_IRQ();
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
sun4m_init_IRQ();
|
||||
else
|
||||
sun4m_init_IRQ();
|
||||
break;
|
||||
|
||||
case sun4d:
|
||||
|
@@ -228,14 +228,10 @@ static void __init sbus_time_init(void)
|
||||
|
||||
void __init time_init(void)
|
||||
{
|
||||
#ifdef CONFIG_PCI
|
||||
extern void pci_time_init(void);
|
||||
if (pcic_present()) {
|
||||
if (pcic_present())
|
||||
pci_time_init();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
sbus_time_init();
|
||||
else
|
||||
sbus_time_init();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user