From 553585f3f0f8251148592c651877294ce46a2c6a Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sat, 10 Jan 2004 05:35:07 -0500 Subject: [PATCH] [netdrvr] remove init_etherdev mentions in Doc/SubmittingPatches, atari_pamsnet.c --- Documentation/SubmittingPatches | 4 ++-- drivers/net/atari_pamsnet.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches index 029e4281aa775..d88a68fc3092e 100644 --- a/Documentation/SubmittingPatches +++ b/Documentation/SubmittingPatches @@ -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); diff --git a/drivers/net/atari_pamsnet.c b/drivers/net/atari_pamsnet.c index 75b27a3445ad6..6bcb154d2c14e 100644 --- a/drivers/net/atari_pamsnet.c +++ b/drivers/net/atari_pamsnet.c @@ -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 -- 2.53.0