[NETROM]: Introduct stuct nr_private
NET/ROM's virtual interfaces don't have a proper private data structure yet. Create struct nr_private and put the statistics there. Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e21ce8c7c0
commit
b88a762b60
@@ -1392,8 +1392,7 @@ static int __init nr_proto_init(void)
|
||||
struct net_device *dev;
|
||||
|
||||
sprintf(name, "nr%d", i);
|
||||
dev = alloc_netdev(sizeof(struct net_device_stats), name,
|
||||
nr_setup);
|
||||
dev = alloc_netdev(sizeof(struct nr_private), name, nr_setup);
|
||||
if (!dev) {
|
||||
printk(KERN_ERR "NET/ROM: nr_proto_init - unable to allocate device structure\n");
|
||||
goto fail;
|
||||
|
Reference in New Issue
Block a user