netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ethertap can use alloc_etherdev
@ 2003-11-11 22:45 Stephen Hemminger
  2003-11-11 23:52 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2003-11-11 22:45 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

Can use alloc_etherdev, don't need to call ether_setup.
Found by viro.

diff -Nru a/drivers/net/ethertap.c b/drivers/net/ethertap.c
--- a/drivers/net/ethertap.c	Tue Nov 11 09:36:15 2003
+++ b/drivers/net/ethertap.c	Tue Nov 11 09:36:15 2003
@@ -72,8 +72,7 @@
 	struct net_device *dev;
 	int err = -ENOMEM;
 
-	dev = alloc_netdev(sizeof(struct net_local), "tap%d",
-			   ether_setup);
+	dev = alloc_etherdev(sizeof(struct net_local));
 
 	if (!dev)
 		goto out;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-12  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-11 22:45 [PATCH] ethertap can use alloc_etherdev Stephen Hemminger
2003-11-11 23:52 ` Jeff Garzik
2003-11-12  0:47   ` Stephen Hemminger
2003-11-12  0:50     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).