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. ...@@ -239,7 +239,7 @@ Let the compiler optimize away the "no-op" case.
Simple example, of poor code: Simple example, of poor code:
dev = init_etherdev (NULL, 0); dev = alloc_etherdev (sizeof(struct funky_private));
if (!dev) if (!dev)
return -ENODEV; return -ENODEV;
#ifdef CONFIG_NET_FUNKINESS #ifdef CONFIG_NET_FUNKINESS
...@@ -254,7 +254,7 @@ Cleaned-up example: ...@@ -254,7 +254,7 @@ Cleaned-up example:
#endif #endif
(in the code itself) (in the code itself)
dev = init_etherdev (NULL, 0); dev = alloc_etherdev (sizeof(struct funky_private));
if (!dev) if (!dev)
return -ENODEV; return -ENODEV;
init_funky_net(dev); init_funky_net(dev);
......
...@@ -110,8 +110,6 @@ static char *version = ...@@ -110,8 +110,6 @@ static char *version =
#undef READ #undef READ
#undef WRITE #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 /* use 0 for production, 1 for verification, >2 for debug
*/ */
#ifndef NET_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