Skip to contentSkip to conversation

kill drivers/net/net_init.c

PATCH Applied Christoph Hellwig 2 participants 2 messages Nov 14, 2004 – Nov 18, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kill drivers/net/net_init.c

After the last patch only three routines are left in this file, but all of the fir into net/core/dev.c much better:

- {un,}register_netdev are just wrappers around {un,}register_netdevice from dev.c
- alloc_netdev's counterpart, free_netdev is in dev.c aswell.

So move over the remaining contents and add some kerneldoc comments describing the functions.

drivers/net/Makefile +1 -1
@@ -66,7 +66,7 @@
 
 obj-$(CONFIG_SUNDANCE) += sundance.o
 obj-$(CONFIG_HAMACHI) += hamachi.o
-obj-$(CONFIG_NET) += Space.o net_init.o loopback.o
+obj-$(CONFIG_NET) += Space.o loopback.o
 obj-$(CONFIG_SEEQ8005) += seeq8005.o
 obj-$(CONFIG_ETHERTAP) += ethertap.o
 obj-$(CONFIG_NET_SB1000) += sb1000.o
drivers/net/net_init.c +0 -152

152 lines not on this page · raw message

net/core/dev.c +108 -4

142 lines not on this page · raw message

maintainer Applied
#1 lore raw
Quoted 9 lines · On Sun, 14 Nov 2004 11:16:37 +0100 Christoph Hellwig <[email protected]> wrote:

After the last patch only three routines are left in this file, but all of the fir into net/core/dev.c much better:

- {un,}register_netdev are just wrappers around {un,}register_netdevice from dev.c
- alloc_netdev's counterpart, free_netdev is in dev.c aswell.

So move over the remaining contents and add some kerneldoc comments describing the functions.

Queued for 2.6.11, thanks Christoph.