kill drivers/net/net_init.c
Subsystems (2)
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
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.cmuch better:- {un,}register_netdev are just wrappers around {un,}register_netdevice from
dev.c
- alloc_netdev's counterpart,free_netdevis indev.caswell.So move over the remaining contents and add some kerneldoc comments describing the functions.
Queued for 2.6.11, thanks Christoph.