From 6ae0b08d7fb678751ec27a2b22f38c771e9eed8f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 7 Aug 2003 06:28:33 +1000 Subject: [NET] Dynamically allocate net_device structures for ROSE This patch changes the ROSE protocol to allocate an array of pointers and each network device separately. This sets up later change where network_device object's are released on last use which may be after the module is unloaded. The patch is against 2.6.0-test2 (though this code hasn't changed in a long time). Allocation is done via alloc_netdev so the dev->priv area is already reserved and doesn't need to be allocated separately. --- include/net/rose.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/net/rose.h b/include/net/rose.h index 96d561e15a26..37e8176ee7d2 100644 --- a/include/net/rose.h +++ b/include/net/rose.h @@ -163,7 +163,7 @@ extern void rose_destroy_socket(struct sock *); /* rose_dev.c */ extern int rose_rx_ip(struct sk_buff *, struct net_device *); -extern int rose_init(struct net_device *); +extern void rose_setup(struct net_device *); /* rose_in.c */ extern int rose_process_rx_frame(struct sock *, struct sk_buff *); -- cgit v1.2.3