X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Floopback.c;h=41b774baac4d4ce6651b51f051ecc9b003d5a623;hb=a292f404fabb342716a9d96e8155b7fb7b651dc1;hp=fa147cd5d68c07e2b8e434ffad5db9c55891b58d;hpb=9156ad48338e0306e508ead5c0d9986050744475;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index fa147cd5d68..41b774baac4 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -64,8 +64,6 @@ struct pcpu_lstats { unsigned long bytes; }; -#define LOOPBACK_OVERHEAD (128 + MAX_HEADER + 16 + 16) - /* KISS: just allocate small chunks and copy bits. * * So, in fact, this is documentation, explaining what we expect @@ -260,7 +258,7 @@ static __net_init int loopback_net_init(struct net *net) if (!dev) goto out; - dev->nd_net = net; + dev_net_set(dev, net); err = register_netdev(dev); if (err) goto out_free_netdev;