aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_core.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-09-15 17:28:28 +0900
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-17 10:06:02 -0700
commita2359a334fb2c89347e031c4494282e6756e9ae7 (patch)
tree9ac5e61752318def916d47fd0ea27b62b19dbc3c /drivers/pci/hotplug/pciehp_core.c
parent0e3631593c38e8a09bf58a46c6f6a3426d3ad0f0 (diff)
downloadkernel_samsung_smdk4412-a2359a334fb2c89347e031c4494282e6756e9ae7.zip
kernel_samsung_smdk4412-a2359a334fb2c89347e031c4494282e6756e9ae7.tar.gz
kernel_samsung_smdk4412-a2359a334fb2c89347e031c4494282e6756e9ae7.tar.bz2
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_core.c')
-rw-r--r--drivers/pci/hotplug/pciehp_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c
index 3adca3c..209dd9d 100644
--- a/drivers/pci/hotplug/pciehp_core.c
+++ b/drivers/pci/hotplug/pciehp_core.c
@@ -123,11 +123,9 @@ static int init_slot(struct controller *ctrl)
slot->hotplug_slot = hotplug;
snprintf(name, SLOT_NAME_SIZE, "%u", slot->number);
- ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:00 "
- "sun=%x slot_device_offset=%x\n",
+ ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:00 sun=%x\n",
pci_domain_nr(ctrl->pci_dev->subordinate),
- ctrl->pci_dev->subordinate->number,
- slot->number, ctrl->slot_device_offset);
+ ctrl->pci_dev->subordinate->number, slot->number);
retval = pci_hp_register(hotplug,
ctrl->pci_dev->subordinate, 0, name);
if (retval) {