aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-11-05 14:21:31 +0100
committerFelix Fietkau <nbd@nbd.name>2019-12-29 09:08:09 +0100
commit91dde4291ce1dd30091e324c9fe90ecce1e7978b (patch)
tree516c62f459e4f8604fb191012c4c713829014a8f /package/kernel
parent30301dfcf08b5c26a112412fd2fb7df11905adcc (diff)
downloadupstream-91dde4291ce1dd30091e324c9fe90ecce1e7978b.tar.gz
upstream-91dde4291ce1dd30091e324c9fe90ecce1e7978b.tar.bz2
upstream-91dde4291ce1dd30091e324c9fe90ecce1e7978b.zip
mac80211: fix build without CONFIG_PCI
Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry-picked from commit fa37dbbc43db23a0ce7256f47943f38a1dcc9027)
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch b/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch
index cae20f5dc3..a41879184b 100644
--- a/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch
+++ b/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch
@@ -15,7 +15,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
(PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX)
#endif
-+#if LINUX_VERSION_IS_LESS(5,3,0)
++#if defined(CONFIG_PCI) && LINUX_VERSION_IS_LESS(5,3,0)
+
+static inline int
+LINUX_BACKPORT(pci_disable_link_state)(struct pci_dev *pdev, int state)