3 @@ -311,6 +311,11 @@ init_ath_wmac(u_int16_t devid, u_int16_t
7 + if (dev_alloc_name(dev, dev->name) < 0) {
8 + printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
13 case AR531X_WLAN0_NUM:
14 if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) ||
15 --- a/ath/if_ath_pci.c
16 +++ b/ath/if_ath_pci.c
17 @@ -236,6 +236,11 @@ ath_pci_probe(struct pci_dev *pdev, cons
19 sc->aps_sc.sc_invalid = 1;
21 + if (dev_alloc_name(dev, dev->name) < 0) {
22 + printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
28 SET_MODULE_OWNER(dev);