diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-04-17 13:49:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-20 07:11:39 +0200 |
commit | 06010fb588700e7fcb29e720c56884e3de5fd327 (patch) | |
tree | 832891d6ffcf8f2f762094c37b5e88a86bbdd007 /arch/sparc/kernel/time_32.c | |
parent | sparc32,sun4d: rename sbus_tid to board_to_cpu in irq support (diff) | |
download | linux-06010fb588700e7fcb29e720c56884e3de5fd327.tar.xz linux-06010fb588700e7fcb29e720c56884e3de5fd327.zip |
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>
Diffstat (limited to 'arch/sparc/kernel/time_32.c')
-rw-r--r-- | arch/sparc/kernel/time_32.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c index 4e236391b635..b61840300101 100644 --- a/arch/sparc/kernel/time_32.c +++ b/arch/sparc/kernel/time_32.c @@ -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(); } |