diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-10-28 16:02:32 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-11-05 12:09:26 +0100 |
commit | d64daf7026ce47788f12130462a3107bdab8718f (patch) | |
tree | 991e69e5a8eb25bc0b5c2b0e668f7a3d8937417b /package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch | |
parent | 70d5989c9c99788a9b2a1a737987edcf7e1ae382 (diff) | |
download | upstream-d64daf7026ce47788f12130462a3107bdab8718f.tar.gz upstream-d64daf7026ce47788f12130462a3107bdab8718f.tar.bz2 upstream-d64daf7026ce47788f12130462a3107bdab8718f.zip |
mac80211: add pcie apsm backport changes
Required for newer versions of mt76
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch')
-rw-r--r-- | package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch b/package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch new file mode 100644 index 0000000000..5faeb96748 --- /dev/null +++ b/package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch @@ -0,0 +1,24 @@ +From: Hauke Mehrtens <hauke@hauke-m.de> +Date: Fri, 27 Sep 2019 23:12:08 +0200 +Subject: [PATCH] backports: pci: Include linux/pci-aspm.h + +In upstream commit 7ce2e76a0420 linux/pci-aspm.h was removed and the +content included into pci.h. Add an include to have the functions +defined in linux/pci-aspm.h available when linux/pci.h is included. + +Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> +--- + +--- a/backport-include/linux/pci.h ++++ b/backport-include/linux/pci.h +@@ -3,6 +3,10 @@ + #include_next <linux/pci.h> + #include <linux/version.h> + ++#if LINUX_VERSION_IS_LESS(5,4,0) ++#include <linux/pci-aspm.h> ++#endif ++ + #ifndef module_pci_driver + /** + * module_pci_driver() - Helper macro for registering a PCI driver |