netrom: convert to internal net_device_stats
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
004b3225c0
commit
b51414b691
3 changed files with 3 additions and 17 deletions
|
@ -1432,7 +1432,7 @@ static int __init nr_proto_init(void)
|
|||
struct net_device *dev;
|
||||
|
||||
sprintf(name, "nr%d", i);
|
||||
dev = alloc_netdev(sizeof(struct nr_private), name, nr_setup);
|
||||
dev = alloc_netdev(0, name, nr_setup);
|
||||
if (!dev) {
|
||||
printk(KERN_ERR "NET/ROM: nr_proto_init - unable to allocate device structure\n");
|
||||
goto fail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue