diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-09-12 17:28:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-12 17:28:03 -0400 |
commit | b88a762b6062f06d431af0045de4854a758646c0 (patch) | |
tree | f85f579a183fa314ea793e178e28066476f01f7f /net/netrom/af_netrom.c | |
parent | e21ce8c7c013fb223a002c70bb0a547de6c26c12 (diff) |
[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>
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 8c3d3a78481e..e5d82d711cae 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1392,8 +1392,7 @@ static int __init nr_proto_init(void) | |||
1392 | struct net_device *dev; | 1392 | struct net_device *dev; |
1393 | 1393 | ||
1394 | sprintf(name, "nr%d", i); | 1394 | sprintf(name, "nr%d", i); |
1395 | dev = alloc_netdev(sizeof(struct net_device_stats), name, | 1395 | dev = alloc_netdev(sizeof(struct nr_private), name, nr_setup); |
1396 | nr_setup); | ||
1397 | if (!dev) { | 1396 | if (!dev) { |
1398 | printk(KERN_ERR "NET/ROM: nr_proto_init - unable to allocate device structure\n"); | 1397 | printk(KERN_ERR "NET/ROM: nr_proto_init - unable to allocate device structure\n"); |
1399 | goto fail; | 1398 | goto fail; |