X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fnetconsole.c;h=69233f6aa05ca2d115f77ed3c71d00954c5c0204;hb=bef986502fa398b1785a3979b1aa17cd902d3527;hp=bf58db29e2ed6342bd707931ccd598a3c376b07c;hpb=3145012c1c34a3504a2234bd2034ca6ea4767bc5;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index bf58db29e2e..69233f6aa05 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -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; @@ -102,6 +101,8 @@ __setup("netconsole=", option_setup); static int init_netconsole(void) { + int err; + if(strlen(config)) option_setup(config); @@ -110,8 +111,9 @@ static int init_netconsole(void) return 0; } - if(netpoll_setup(&np)) - return -EINVAL; + err = netpoll_setup(&np); + if (err) + return err; register_console(&netconsole); printk(KERN_INFO "netconsole: network logging started\n");