madwifi: remove my maintainer line from the package
[openwrt.git] / package / madwifi / patches / 434-name-alloc-fix.patch
1 --- a/ath/if_ath_ahb.c
2 +++ b/ath/if_ath_ahb.c
3 @@ -311,6 +311,11 @@ init_ath_wmac(u_int16_t devid, u_int16_t
4 SET_MODULE_OWNER(dev);
5 sclist[wlanNum] = sc;
6
7 + if (dev_alloc_name(dev, dev->name) < 0) {
8 + printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
9 + goto bad3;
10 + }
11 +
12 switch (wlanNum) {
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
18 */
19 sc->aps_sc.sc_invalid = 1;
20
21 + if (dev_alloc_name(dev, dev->name) < 0) {
22 + printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
23 + goto bad3;
24 + }
25 +
26 dev->irq = pdev->irq;
27
28 SET_MODULE_OWNER(dev);
This page took 0.04013 seconds and 5 git commands to generate.