diff options
author | Alex Chiang <achiang@hp.com> | 2009-09-10 14:34:09 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-14 11:46:58 -0400 |
commit | 7f53866932fd08add06ee2f93ead129949158490 (patch) | |
tree | f01520afe3708a3c79233fa67d50124f0dac6335 /include | |
parent | 6edd7679db92376ca54f328d6b0f12291c2dab35 (diff) |
PCI Hotplug: convert acpi_pci_detect_ejectable() to take an acpi_handle
acpi_pci_detect_ejectable() goes through effort to convert its
struct pci_bus arg to an acpi_handle, but every time we use this
interface, we already have the handle available.
So let's just use the handle instead of converting back and forth.
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Tested-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci_hotplug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h index 1b00cc3177fc..f0c31ae3f842 100644 --- a/include/linux/pci_hotplug.h +++ b/include/linux/pci_hotplug.h | |||
@@ -231,7 +231,7 @@ extern acpi_status acpi_get_hp_params_from_firmware(struct pci_bus *bus, | |||
231 | struct hotplug_params *hpp); | 231 | struct hotplug_params *hpp); |
232 | int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags); | 232 | int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags); |
233 | int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle); | 233 | int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle); |
234 | int acpi_pci_detect_ejectable(struct pci_bus *pbus); | 234 | int acpi_pci_detect_ejectable(acpi_handle handle); |
235 | #endif | 235 | #endif |
236 | #endif | 236 | #endif |
237 | 237 | ||