Commit fa503878 authored by Pat Gefre's avatar Pat Gefre Committed by David Mosberger

[PATCH] ia64: fix SN2 console driver to use console_initcall()

parent 81110cb1
...@@ -82,7 +82,6 @@ static DECLARE_TASKLET(sn_sal_tasklet, sn_sal_tasklet_action, 0); ...@@ -82,7 +82,6 @@ static DECLARE_TASKLET(sn_sal_tasklet, sn_sal_tasklet_action, 0);
static unsigned long sn_interrupt_timeout; static unsigned long sn_interrupt_timeout;
extern u64 master_node_bedrock_address; extern u64 master_node_bedrock_address;
static int sn_debug_printf(const char *fmt, ...); static int sn_debug_printf(const char *fmt, ...);
#undef DEBUG #undef DEBUG
...@@ -105,7 +104,7 @@ struct sn_sal_ops { ...@@ -105,7 +104,7 @@ struct sn_sal_ops {
static struct sn_sal_ops *sn_func; static struct sn_sal_ops *sn_func;
/* Prototypes */ /* Prototypes */
static void __init sn_sal_serial_console_init(void); int __init sn_sal_serial_console_init(void);
static int snt_hw_puts(const char *, int); static int snt_hw_puts(const char *, int);
static int snt_poll_getc(void); static int snt_poll_getc(void);
static int snt_poll_input_pending(void); static int snt_poll_input_pending(void);
...@@ -921,9 +920,6 @@ sn_sal_module_init(void) ...@@ -921,9 +920,6 @@ sn_sal_module_init(void)
printk(KERN_ERR "sn_serial: Unable to register tty driver\n"); printk(KERN_ERR "sn_serial: Unable to register tty driver\n");
return retval; return retval;
} }
#ifdef CONFIG_SGI_L1_SERIAL_CONSOLE
sn_sal_serial_console_init();
#endif /* CONFIG_SGI_L1_SERIAL_CONSOLE */
return 0; return 0;
} }
...@@ -1015,7 +1011,7 @@ static struct console sal_console = { ...@@ -1015,7 +1011,7 @@ static struct console sal_console = {
.index = -1 .index = -1
}; };
static void __init int __init
sn_sal_serial_console_init(void) sn_sal_serial_console_init(void)
{ {
if (ia64_platform_is("sn2")) { if (ia64_platform_is("sn2")) {
...@@ -1023,6 +1019,8 @@ sn_sal_serial_console_init(void) ...@@ -1023,6 +1019,8 @@ sn_sal_serial_console_init(void)
sn_debug_printf("sn_sal_serial_console_init : register console\n"); sn_debug_printf("sn_sal_serial_console_init : register console\n");
register_console(&sal_console); register_console(&sal_console);
} }
return 0;
} }
console_initcall(sn_sal_serial_console_init);
#endif /* CONFIG_SGI_L1_SERIAL_CONSOLE */ #endif /* CONFIG_SGI_L1_SERIAL_CONSOLE */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment