]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/wan/hdlc.c
net: set name_assign_type in alloc_netdev()
[mirror_ubuntu-bionic-kernel.git] / drivers / net / wan / hdlc.c
index 9c33ca918e19f7c03bc66ee8aff4b5365ec031eb..51f6cee8aab2d805147b9741ea49fad3747d7cfa 100644 (file)
@@ -256,7 +256,8 @@ static void hdlc_setup(struct net_device *dev)
 struct net_device *alloc_hdlcdev(void *priv)
 {
        struct net_device *dev;
-       dev = alloc_netdev(sizeof(struct hdlc_device), "hdlc%d", hdlc_setup);
+       dev = alloc_netdev(sizeof(struct hdlc_device), "hdlc%d",
+                          NET_NAME_UNKNOWN, hdlc_setup);
        if (dev)
                dev_to_hdlc(dev)->priv = priv;
        return dev;