2019-10-28 16:02:32 +01:00
|
|
|
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
|
2019-11-19 12:09:03 +01:00
|
|
|
@@ -7,6 +7,10 @@
|
|
|
|
#include <linux/pci-aspm.h>
|
|
|
|
#endif
|
2019-10-28 16:02:32 +01:00
|
|
|
|
|
|
|
+#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
|