Commit 553585f3 authored by Jeff Garzik's avatar Jeff Garzik Committed by Stephen Hemminger

[netdrvr] remove init_etherdev mentions in Doc/SubmittingPatches, atari_pamsnet.c

parent 525e0bcf
......@@ -239,7 +239,7 @@ Let the compiler optimize away the "no-op" case.
Simple example, of poor code:
dev = init_etherdev (NULL, 0);
dev = alloc_etherdev (sizeof(struct funky_private));
if (!dev)
return -ENODEV;
#ifdef CONFIG_NET_FUNKINESS
......@@ -254,7 +254,7 @@ Cleaned-up example:
#endif
(in the code itself)
dev = init_etherdev (NULL, 0);
dev = alloc_etherdev (sizeof(struct funky_private));
if (!dev)
return -ENODEV;
init_funky_net(dev);
......
......@@ -110,8 +110,6 @@ static char *version =
#undef READ
#undef WRITE
extern struct net_device *init_etherdev(struct net_device *dev, int sizeof_private);
/* use 0 for production, 1 for verification, >2 for debug
*/
#ifndef NET_DEBUG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment