]> err.no Git - linux-2.6/blobdiff - drivers/net/netconsole.c
e1000: reorder e1000_param.c
[linux-2.6] / drivers / net / netconsole.c
index edd1b5306b16ea5b790dba2b75281274b64232c1..bf58db29e2ed6342bd707931ccd598a3c376b07c 100644 (file)
@@ -87,6 +87,7 @@ static void write_msg(struct console *con, const char *msg, unsigned int len)
 }
 
 static struct console netconsole = {
+       .name = "netcon",
        .flags = CON_ENABLED | CON_PRINTBUFFER,
        .write = write_msg
 };
@@ -94,7 +95,7 @@ static struct console netconsole = {
 static int option_setup(char *opt)
 {
        configured = !netpoll_parse_options(&np, opt);
-       return 0;
+       return 1;
 }
 
 __setup("netconsole=", option_setup);
@@ -106,7 +107,7 @@ static int init_netconsole(void)
 
        if(!configured) {
                printk("netconsole: not configured, aborting\n");
-               return -EINVAL;
+               return 0;
        }
 
        if(netpoll_setup(&np))