Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90a660a4546d6ba5ca5f3a23d5cc599db2b41e08
Commit:     90a660a4546d6ba5ca5f3a23d5cc599db2b41e08
Parent:     e7f11aeed02767541020984f72f823757c58e48e
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Mon May 7 00:14:13 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon May 7 00:14:13 2007 -0700

    [SERIAL] sunsu: Fix section mismatch warnings.
    
    Mark sunsu_console_setup() as __init and rename 'sunsu_cons'
    to 'sunsu_console' so that it matches modpost.c's whitelist.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/serial/sunsu.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c
index bfd4417..2a63cdb 100644
--- a/drivers/serial/sunsu.c
+++ b/drivers/serial/sunsu.c
@@ -1312,7 +1312,7 @@ static void sunsu_console_write(struct console *co, const 
char *s,
  *     - initialize the serial port
  *     Return non-zero if we didn't find a serial port.
  */
-static int sunsu_console_setup(struct console *co, char *options)
+static int __init sunsu_console_setup(struct console *co, char *options)
 {
        struct uart_port *port;
        int baud = 9600;
@@ -1343,7 +1343,7 @@ static int sunsu_console_setup(struct console *co, char 
*options)
        return uart_set_options(port, co, baud, parity, bits, flow);
 }
 
-static struct console sunsu_cons = {
+static struct console sunsu_console = {
        .name   =       "ttyS",
        .write  =       sunsu_console_write,
        .device =       uart_console_device,
@@ -1373,9 +1373,9 @@ static inline struct console *SUNSU_CONSOLE(int num_uart)
        if (i == num_uart)
                return NULL;
 
-       sunsu_cons.index = i;
+       sunsu_console.index = i;
 
-       return &sunsu_cons;
+       return &sunsu_console;
 }
 #else
 #define SUNSU_CONSOLE(num_uart)                (NULL)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to