From: Keiichi KII <[EMAIL PROTECTED]>

This patch contains the following cleanups.
 - add __init for initialization functions(option_setup() and
   init_netconsole()).
 - remove "drop" initialization in the netpoll structure.

Signed-off-by: Keiichi KII <[EMAIL PROTECTED]>
---
[changes]
1. stop to use anoymous enum.
2. remove unrelated changes(formatting changes).

--- linux-2.6.19/drivers/net/netconsole.c       2006-12-21 18:26:04.017895000 
+0900
+++ enhanced-netconsole/drivers/net/netconsole.c.cleanup        2006-12-21 
18:38:34.080771000 +0900
@@ -60,7 +60,6 @@ static struct netpoll np = {
        .local_port = 6665,
        .remote_port = 6666,
        .remote_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
-       .drop = netpoll_queue,
 };
 static int configured = 0;
 
@@ -92,7 +91,7 @@ static struct console netconsole = {
        .write = write_msg
 };
 
-static int option_setup(char *opt)
+static int __init option_setup(char *opt)
 {
        configured = !netpoll_parse_options(&np, opt);
        return 1;
@@ -100,7 +99,7 @@ static int option_setup(char *opt)
 
 __setup("netconsole=", option_setup);
 
-static int init_netconsole(void)
+static int __init init_netconsole(void)
 {
        if(strlen(config))
                option_setup(config);

-- 
Keiichi KII
NEC Corporation OSS Promotion Center
E-mail: [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to