aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_hpc.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-09-15 04:28:28 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-17 13:06:02 -0400
commita2359a334fb2c89347e031c4494282e6756e9ae7 (patch)
tree9ac5e61752318def916d47fd0ea27b62b19dbc3c /drivers/pci/hotplug/pciehp_hpc.c
parent0e3631593c38e8a09bf58a46c6f6a3426d3ad0f0 (diff)
PCI: pciehp: remove slot_device_offset field
Since the device number of the hot-slot under the PCIe downstream port is always 0, the slot_device_offset field in the slot is meaningless and we don't need it. Acked-by: Alex Chiang <achiang@hp.com> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_hpc.c')
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index 24b221572f07..53118c12bc09 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -1017,7 +1017,6 @@ struct controller *pcie_init(struct pcie_device *dev)
1017 1017
1018 ctrl->slot_cap = slot_cap; 1018 ctrl->slot_cap = slot_cap;
1019 ctrl->first_slot = slot_cap >> 19; 1019 ctrl->first_slot = slot_cap >> 19;
1020 ctrl->slot_device_offset = 0;
1021 ctrl->hpc_ops = &pciehp_hpc_ops; 1020 ctrl->hpc_ops = &pciehp_hpc_ops;
1022 mutex_init(&ctrl->crit_sect); 1021 mutex_init(&ctrl->crit_sect);
1023 mutex_init(&ctrl->ctrl_lock); 1022 mutex_init(&ctrl->ctrl_lock);