aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-09-14 18:35:15 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-14 20:38:26 -0400
commit6a29172ba90e49c046245610caff9848307bfd6a (patch)
tree41911e0b90cb6bec026f9eb2d4cc5e0f914afa75 /drivers/pci/hotplug/shpchp.h
parentfca6825ad7382ae9df8ecda9068ac13ee9e343f4 (diff)
PCI hotplug: clean up acpi_get_hp_params_from_firmware() interface
This patch makes acpi_get_hp_params_from_firmware() take a pci_dev rather than a pci_bus and makes it return a standard int errno rather than acpi_status. 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/shpchp.h')
-rw-r--r--drivers/pci/hotplug/shpchp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h
index 974e924ca96d..ad6a255cf0a5 100644
--- a/drivers/pci/hotplug/shpchp.h
+++ b/drivers/pci/hotplug/shpchp.h
@@ -191,9 +191,7 @@ static inline const char *slot_name(struct slot *slot)
191static inline int get_hp_params_from_firmware(struct pci_dev *dev, 191static inline int get_hp_params_from_firmware(struct pci_dev *dev,
192 struct hotplug_params *hpp) 192 struct hotplug_params *hpp)
193{ 193{
194 if (ACPI_FAILURE(acpi_get_hp_params_from_firmware(dev->bus, hpp))) 194 return acpi_get_hp_params_from_firmware(dev, hpp);
195 return -ENODEV;
196 return 0;
197} 195}
198 196
199static inline int get_hp_hw_control_from_firmware(struct pci_dev *dev) 197static inline int get_hp_hw_control_from_firmware(struct pci_dev *dev)