Commit c37e627f authored by Frederick Lawler's avatar Frederick Lawler Committed by Bjorn Helgaas

PCI/portdrv: Move pcieport_if.h to drivers/pci/pcie/

Move pcieport_if.h from include/linux to drivers/pci/pcie/pcieport_if.h
because the interfaces there are only used by the PCI core.

Replace all uses of #include<linux/pcieport_if.h> with relative paths to
the new file location, e.g., #include "../pcieport_if.h"
Signed-off-by: default avatarFrederick Lawler <fred@fredlawl.com>
Signed-off-by: default avatarBjorn Helgaas <helgaas@kernel.org>
parent 7928b2cb
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
#include <linux/pci_hotplug.h> #include <linux/pci_hotplug.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/sched/signal.h> /* signal_pending() */ #include <linux/sched/signal.h> /* signal_pending() */
#include <linux/pcieport_if.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include "../pcie/pcieport_if.h"
#define MY_NAME "pciehp" #define MY_NAME "pciehp"
extern bool pciehp_poll_mode; extern bool pciehp_poll_mode;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pcieport_if.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "aerdrv.h" #include "aerdrv.h"
......
...@@ -10,10 +10,11 @@ ...@@ -10,10 +10,11 @@
#define _AERDRV_H_ #define _AERDRV_H_
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/pcieport_if.h>
#include <linux/aer.h> #include <linux/aer.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include "../pcieport_if.h"
#define SYSTEM_ERROR_INTR_ON_MESG_MASK (PCI_EXP_RTCTL_SECEE| \ #define SYSTEM_ERROR_INTR_ON_MESG_MASK (PCI_EXP_RTCTL_SECEE| \
PCI_EXP_RTCTL_SENFEE| \ PCI_EXP_RTCTL_SENFEE| \
PCI_EXP_RTCTL_SEFEE) PCI_EXP_RTCTL_SEFEE)
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/pcieport_if.h>
#include "pcieport_if.h"
#include "../pci.h" #include "../pci.h"
#include "aer/aerdrv.h" #include "aer/aerdrv.h"
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/pcieport_if.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include "pcieport_if.h"
#include "../pci.h" #include "../pci.h"
#include "portdrv.h" #include "portdrv.h"
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/pci-acpi.h> #include <linux/pci-acpi.h>
#include <linux/pcieport_if.h>
#include "pcieport_if.h"
#include "aer/aerdrv.h" #include "aer/aerdrv.h"
#include "../pci.h" #include "../pci.h"
#include "portdrv.h" #include "portdrv.h"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/pcieport_if.h> #include "pcieport_if.h"
#include "portdrv.h" #include "portdrv.h"
static int pcie_port_bus_match(struct device *dev, struct device_driver *drv); static int pcie_port_bus_match(struct device *dev, struct device_driver *drv);
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/pcieport_if.h>
#include <linux/aer.h> #include <linux/aer.h>
#include "pcieport_if.h"
#include "../pci.h" #include "../pci.h"
#include "portdrv.h" #include "portdrv.h"
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/pcieport_if.h>
#include <linux/aer.h> #include <linux/aer.h>
#include <linux/dmi.h> #include <linux/dmi.h>
#include <linux/pci-aspm.h> #include <linux/pci-aspm.h>
#include "pcieport_if.h"
#include "../pci.h" #include "../pci.h"
#include "portdrv.h" #include "portdrv.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment