Use Linux 3.17 4-argument alloc_netdev(), provide compatibility code
[madwifi/.git] / ath / if_ath_ahb.c
index 7fa185db477f7e1210fc448a54f65e53f0df764c..59c6579671baff4aad836c57cbff7db932e1abae 100644 (file)
@@ -188,7 +188,8 @@ init_ath_wmac(u_int16_t devid, u_int16_t wlanNum, struct ar531x_config *config)
 
        ahb_enable_wmac(devid, wlanNum);
 
-       dev = alloc_netdev(sizeof(struct ath_softc), "wifi%d", ether_setup);
+       dev = alloc_netdev(sizeof(struct ath_softc), "wifi%d", NET_NAME_UNKNOWN,
+                          ether_setup);
        if (dev == NULL) {
                printk(KERN_ERR "%s: no memory for device state\n", dev_info);
                goto bad2;