[SPARC32]: Fix sparc32 modpost warnings with sunzilog
Fix this 2.6.19-rc1 build warnings from modpost: WARNING: vmlinux - Section mismatch: reference to .init.text:sunzilog_console_setup from .data between 'sunzilog_console' (at offset 0x8394) and 'devices_subsys' Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e3096de34c
commit
eba8cefc78
@@ -1182,7 +1182,7 @@ static int __init sunzilog_console_setup(struct console *con, char *options)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct console sunzilog_console = {
|
||||
static struct console sunzilog_console_ops = {
|
||||
.name = "ttyS",
|
||||
.write = sunzilog_console_write,
|
||||
.device = uart_console_device,
|
||||
@@ -1208,10 +1208,10 @@ static inline struct console *SUNZILOG_CONSOLE(void)
|
||||
if (i == NUM_CHANNELS)
|
||||
return NULL;
|
||||
|
||||
sunzilog_console.index = i;
|
||||
sunzilog_console_ops.index = i;
|
||||
sunzilog_port_table[i].flags |= SUNZILOG_FLAG_IS_CONS;
|
||||
|
||||
return &sunzilog_console;
|
||||
return &sunzilog_console_ops;
|
||||
}
|
||||
|
||||
#else
|
||||
|
Reference in New Issue
Block a user