diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-09-14 18:35:25 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-14 20:39:09 -0400 |
commit | d569c74d78ffcde2f163256e4da934ec3bacff0e (patch) | |
tree | a4652df85c274f60b5677ac266e88f99e990f87c /drivers/pci/hotplug/pciehp.h | |
parent | 8838400db5193c37588813c2eb1249b821781950 (diff) |
PCI hotplug: pciehp: use generic pci_configure_slot()
Use the generic pci_configure_slot() rather than the PCIe-specific
program_fw_provided_values().
Unlike the previous pciehp-specific code, we now walk through subordinate
devices even if there are no settings for the parent. This should be
harmless because we won't change anything unless we discover firmware
settings farther down.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r-- | drivers/pci/hotplug/pciehp.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index 86cdfd71ed27..36faa9a8e18f 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h | |||
@@ -237,15 +237,8 @@ static inline int pciehp_get_hp_hw_control_from_firmware(struct pci_dev *dev) | |||
237 | return retval; | 237 | return retval; |
238 | return pciehp_acpi_slot_detection_check(dev); | 238 | return pciehp_acpi_slot_detection_check(dev); |
239 | } | 239 | } |
240 | |||
241 | static inline int pciehp_get_hp_params_from_firmware(struct pci_dev *dev, | ||
242 | struct hotplug_params *hpp) | ||
243 | { | ||
244 | return acpi_get_hp_params_from_firmware(dev, hpp); | ||
245 | } | ||
246 | #else | 240 | #else |
247 | #define pciehp_firmware_init() do {} while (0) | 241 | #define pciehp_firmware_init() do {} while (0) |
248 | #define pciehp_get_hp_hw_control_from_firmware(dev) 0 | 242 | #define pciehp_get_hp_hw_control_from_firmware(dev) 0 |
249 | #define pciehp_get_hp_params_from_firmware(dev, hpp) (-ENODEV) | ||
250 | #endif /* CONFIG_ACPI */ | 243 | #endif /* CONFIG_ACPI */ |
251 | #endif /* _PCIEHP_H */ | 244 | #endif /* _PCIEHP_H */ |