wl1251: fix a memory leak in probe
[pandora-wifi.git] / patches / 20-pcidev.patch
1 Older kernels than 2.6.24 do not have the is_pcie member as part of
2 the struct pci_dev, to help with that we use the compat-2.6.24.c supplied
3 compat_is_pcie() when needed.
4
5 --- a/drivers/net/wireless/ath/ath9k/pci.c
6 +++ b/drivers/net/wireless/ath/ath9k/pci.c
7 @@ -79,7 +79,11 @@ static void ath_pci_bt_coex_prep(struct 
8         struct pci_dev *pdev = to_pci_dev(sc->dev);
9         u8 aspm;
10  
11 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
12         if (!pdev->is_pcie)
13 +#else
14 +       if (!compat_is_pcie(pdev))
15 +#endif
16                 return;
17  
18         pci_read_config_byte(pdev, ATH_PCIE_CAP_LINK_CTRL, &aspm);