mac80211: refresh patches
[openwrt/staging/noltari.git] / package / kernel / mac80211 / patches / build / 100-backports-pci-Include-linux-pci-aspm.h.patch
1 From: Hauke Mehrtens <hauke@hauke-m.de>
2 Date: Fri, 27 Sep 2019 23:12:08 +0200
3 Subject: [PATCH] backports: pci: Include linux/pci-aspm.h
4
5 In upstream commit 7ce2e76a0420 linux/pci-aspm.h was removed and the
6 content included into pci.h. Add an include to have the functions
7 defined in linux/pci-aspm.h available when linux/pci.h is included.
8
9 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 ---
11
12 --- a/backport-include/linux/pci.h
13 +++ b/backport-include/linux/pci.h
14 @@ -7,6 +7,10 @@
15 #include <linux/pci-aspm.h>
16 #endif
17
18 +#if LINUX_VERSION_IS_LESS(5,4,0)
19 +#include <linux/pci-aspm.h>
20 +#endif
21 +
22 #ifndef module_pci_driver
23 /**
24 * module_pci_driver() - Helper macro for registering a PCI driver