diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2009-09-15 04:26:56 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-17 13:05:51 -0400 |
commit | d689f7eb364a51ccd857605dede0d6c22a1aad91 (patch) | |
tree | 34efda76db5ec3e0c57034deb254014c55b93068 /drivers/pci/hotplug/pciehp_ctrl.c | |
parent | ab9c6c86701b498445334db746aa2e8dc473c7b6 (diff) |
PCI: pciehp: remove device field
The device field in the struct slot is not necessary because it is
always 0 in pciehp driver.
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_ctrl.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_ctrl.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c index a68069c9ba8d..7e31728d8ca4 100644 --- a/drivers/pci/hotplug/pciehp_ctrl.c +++ b/drivers/pci/hotplug/pciehp_ctrl.c | |||
@@ -210,9 +210,8 @@ static int board_added(struct slot *p_slot) | |||
210 | struct controller *ctrl = p_slot->ctrl; | 210 | struct controller *ctrl = p_slot->ctrl; |
211 | struct pci_bus *parent = ctrl->pci_dev->subordinate; | 211 | struct pci_bus *parent = ctrl->pci_dev->subordinate; |
212 | 212 | ||
213 | ctrl_dbg(ctrl, "%s: slot device, slot offset, hp slot = %d, %d, %d\n", | 213 | ctrl_dbg(ctrl, "%s: slot device, slot offset, hp slot = 0, %d, %d\n", |
214 | __func__, p_slot->device, ctrl->slot_device_offset, | 214 | __func__, ctrl->slot_device_offset, p_slot->hp_slot); |
215 | p_slot->hp_slot); | ||
216 | 215 | ||
217 | if (POWER_CTRL(ctrl)) { | 216 | if (POWER_CTRL(ctrl)) { |
218 | /* Power on slot */ | 217 | /* Power on slot */ |
@@ -241,9 +240,8 @@ static int board_added(struct slot *p_slot) | |||
241 | 240 | ||
242 | retval = pciehp_configure_device(p_slot); | 241 | retval = pciehp_configure_device(p_slot); |
243 | if (retval) { | 242 | if (retval) { |
244 | ctrl_err(ctrl, "Cannot add device at %04x:%02x:%02x\n", | 243 | ctrl_err(ctrl, "Cannot add device at %04x:%02x:00\n", |
245 | pci_domain_nr(parent), parent->number, | 244 | pci_domain_nr(parent), parent->number); |
246 | p_slot->device); | ||
247 | goto err_exit; | 245 | goto err_exit; |
248 | } | 246 | } |
249 | 247 | ||
@@ -318,10 +316,9 @@ static void pciehp_power_thread(struct work_struct *work) | |||
318 | case POWEROFF_STATE: | 316 | case POWEROFF_STATE: |
319 | mutex_unlock(&p_slot->lock); | 317 | mutex_unlock(&p_slot->lock); |
320 | ctrl_dbg(p_slot->ctrl, | 318 | ctrl_dbg(p_slot->ctrl, |
321 | "Disabling domain:bus:device=%04x:%02x:%02x\n", | 319 | "Disabling domain:bus:device=%04x:%02x:00\n", |
322 | pci_domain_nr(p_slot->ctrl->pci_dev->subordinate), | 320 | pci_domain_nr(p_slot->ctrl->pci_dev->subordinate), |
323 | p_slot->ctrl->pci_dev->subordinate->number, | 321 | p_slot->ctrl->pci_dev->subordinate->number); |
324 | p_slot->device); | ||
325 | pciehp_disable_slot(p_slot); | 322 | pciehp_disable_slot(p_slot); |
326 | mutex_lock(&p_slot->lock); | 323 | mutex_lock(&p_slot->lock); |
327 | p_slot->state = STATIC_STATE; | 324 | p_slot->state = STATIC_STATE; |