diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-28 17:58:18 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-12-06 19:05:49 -0500 |
| commit | 11dcc75dba5bf8b69c4612de10e366c4e04cb123 (patch) | |
| tree | c6f510966339515a5758d07c60f632740b46a5d1 /include/acpi | |
| parent | 5ce79d201358d36f13d13b01d8614bd8e646036c (diff) | |
ACPI / bind: Redefine acpi_get_child()
Since acpi_get_child() is the only user of acpi_find_child() now,
drop the static inline definition of the former and redefine the
latter as new acpi_get_child().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Tested-by: Aaron Lu <aaron.lu@intel.com> # for ATA binding
Diffstat (limited to 'include/acpi')
| -rw-r--r-- | include/acpi/acpi_bus.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 6d82c5c14c0f..a1a48f27933a 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -434,11 +434,7 @@ struct acpi_pci_root { | |||
| 434 | 434 | ||
| 435 | struct acpi_device *acpi_find_child_device(struct acpi_device *parent, | 435 | struct acpi_device *acpi_find_child_device(struct acpi_device *parent, |
| 436 | u64 address, bool check_children); | 436 | u64 address, bool check_children); |
| 437 | acpi_handle acpi_find_child(acpi_handle, u64, bool); | 437 | acpi_handle acpi_get_child(acpi_handle handle, u64 addr); |
| 438 | static inline acpi_handle acpi_get_child(acpi_handle handle, u64 addr) | ||
| 439 | { | ||
| 440 | return acpi_find_child(handle, addr, false); | ||
| 441 | } | ||
| 442 | void acpi_preset_companion(struct device *dev, acpi_handle parent, u64 addr); | 438 | void acpi_preset_companion(struct device *dev, acpi_handle parent, u64 addr); |
| 443 | int acpi_is_root_bridge(acpi_handle); | 439 | int acpi_is_root_bridge(acpi_handle); |
| 444 | struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle); | 440 | struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle); |
