diff options
Diffstat (limited to 'arch/ia64/kernel/setup.c')
-rw-r--r-- | arch/ia64/kernel/setup.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index bb9033187d42..5c7c95737bbf 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c | |||
@@ -74,6 +74,8 @@ DEFINE_PER_CPU(unsigned long, ia64_phys_stacked_size_p8); | |||
74 | unsigned long ia64_cycles_per_usec; | 74 | unsigned long ia64_cycles_per_usec; |
75 | struct ia64_boot_param *ia64_boot_param; | 75 | struct ia64_boot_param *ia64_boot_param; |
76 | struct screen_info screen_info; | 76 | struct screen_info screen_info; |
77 | unsigned long vga_console_iobase; | ||
78 | unsigned long vga_console_membase; | ||
77 | 79 | ||
78 | unsigned long ia64_max_cacheline_size; | 80 | unsigned long ia64_max_cacheline_size; |
79 | unsigned long ia64_iobase; /* virtual address for I/O accesses */ | 81 | unsigned long ia64_iobase; /* virtual address for I/O accesses */ |
@@ -275,23 +277,25 @@ io_port_init (void) | |||
275 | static inline int __init | 277 | static inline int __init |
276 | early_console_setup (char *cmdline) | 278 | early_console_setup (char *cmdline) |
277 | { | 279 | { |
280 | int earlycons = 0; | ||
281 | |||
278 | #ifdef CONFIG_SERIAL_SGI_L1_CONSOLE | 282 | #ifdef CONFIG_SERIAL_SGI_L1_CONSOLE |
279 | { | 283 | { |
280 | extern int sn_serial_console_early_setup(void); | 284 | extern int sn_serial_console_early_setup(void); |
281 | if (!sn_serial_console_early_setup()) | 285 | if (!sn_serial_console_early_setup()) |
282 | return 0; | 286 | earlycons++; |
283 | } | 287 | } |
284 | #endif | 288 | #endif |
285 | #ifdef CONFIG_EFI_PCDP | 289 | #ifdef CONFIG_EFI_PCDP |
286 | if (!efi_setup_pcdp_console(cmdline)) | 290 | if (!efi_setup_pcdp_console(cmdline)) |
287 | return 0; | 291 | earlycons++; |
288 | #endif | 292 | #endif |
289 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 293 | #ifdef CONFIG_SERIAL_8250_CONSOLE |
290 | if (!early_serial_console_init(cmdline)) | 294 | if (!early_serial_console_init(cmdline)) |
291 | return 0; | 295 | earlycons++; |
292 | #endif | 296 | #endif |
293 | 297 | ||
294 | return -1; | 298 | return (earlycons) ? 0 : -1; |
295 | } | 299 | } |
296 | 300 | ||
297 | static inline void | 301 | static inline void |