aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/pciehp.h1
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index af397b1291ea..0282bae81eb1 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -93,7 +93,6 @@ struct event_info {
93struct controller { 93struct controller {
94 struct mutex crit_sect; /* critical section mutex */ 94 struct mutex crit_sect; /* critical section mutex */
95 struct mutex ctrl_lock; /* controller lock */ 95 struct mutex ctrl_lock; /* controller lock */
96 int num_slots; /* Number of slots on ctlr */
97 int slot_num_inc; /* 1 or -1 */ 96 int slot_num_inc; /* 1 or -1 */
98 struct pci_dev *pci_dev; 97 struct pci_dev *pci_dev;
99 struct pcie_device *pcie; /* PCI Express port service */ 98 struct pcie_device *pcie; /* PCI Express port service */
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index cb0cf2cae7b7..d573338af1a4 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -1025,7 +1025,6 @@ struct controller *pcie_init(struct pcie_device *dev)
1025 ctrl->slot_cap = slot_cap; 1025 ctrl->slot_cap = slot_cap;
1026 ctrl->first_slot = slot_cap >> 19; 1026 ctrl->first_slot = slot_cap >> 19;
1027 ctrl->slot_device_offset = 0; 1027 ctrl->slot_device_offset = 0;
1028 ctrl->num_slots = 1;
1029 ctrl->hpc_ops = &pciehp_hpc_ops; 1028 ctrl->hpc_ops = &pciehp_hpc_ops;
1030 mutex_init(&ctrl->crit_sect); 1029 mutex_init(&ctrl->crit_sect);
1031 mutex_init(&ctrl->ctrl_lock); 1030 mutex_init(&ctrl->ctrl_lock);