Add missing argument for alloc_netdev()

This fixes the following compiler error:
tr.c:632:58: error: macro alloc_netdev requires 4 arguments, but only 3 given
This commit is contained in:
Alexander Huemer 2022-04-13 19:42:47 +00:00
parent 9cbcf0c5a3
commit bd8e1e6430
1 changed files with 1 additions and 1 deletions

2
tr.c
View File

@ -629,7 +629,7 @@ static void tr_setup(struct net_device *dev)
*/
struct net_device *alloc_trdev(int sizeof_priv)
{
return alloc_netdev(sizeof_priv, "tr%d", tr_setup);
return alloc_netdev(sizeof_priv, "tr%d", NET_NAME_ENUM, tr_setup);
}
#ifdef CONFIG_SYSCTL