2009-05-31 02:25:32 +00:00
|
|
|
--- a/ath/if_ath_ahb.c
|
|
|
|
+++ b/ath/if_ath_ahb.c
|
|
|
|
@@ -311,6 +311,11 @@ init_ath_wmac(u_int16_t devid, u_int16_t
|
2009-05-20 21:33:54 +00:00
|
|
|
SET_MODULE_OWNER(dev);
|
|
|
|
sclist[wlanNum] = sc;
|
|
|
|
|
|
|
|
+ if (dev_alloc_name(dev, dev->name) < 0) {
|
|
|
|
+ printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
|
|
|
|
+ goto bad3;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
switch (wlanNum) {
|
|
|
|
case AR531X_WLAN0_NUM:
|
|
|
|
if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) ||
|
2009-05-31 02:25:32 +00:00
|
|
|
--- a/ath/if_ath_pci.c
|
|
|
|
+++ b/ath/if_ath_pci.c
|
|
|
|
@@ -236,6 +236,11 @@ ath_pci_probe(struct pci_dev *pdev, cons
|
2009-05-20 21:33:54 +00:00
|
|
|
*/
|
|
|
|
sc->aps_sc.sc_invalid = 1;
|
|
|
|
|
|
|
|
+ if (dev_alloc_name(dev, dev->name) < 0) {
|
|
|
|
+ printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
|
|
|
|
+ goto bad3;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
dev->irq = pdev->irq;
|
|
|
|
|
|
|
|
SET_MODULE_OWNER(dev);
|