summaryrefslogtreecommitdiff
path: root/drivers/acpi/scan.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-10-01 03:18:32 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-10-01 03:18:32 +0300
commit233782495f161341a82aa933b42b35c94077bd65 (patch)
treed1c41d11cd7662c85667005643f6dc1aa2289799 /drivers/acpi/scan.c
parent9ffecb10283508260936b96022d4ee43a7798b4c (diff)
parent3f4232ee8b53cf2266d227af299aa511d2d91d11 (diff)
downloadlinux-233782495f161341a82aa933b42b35c94077bd65.tar.xz
Merge branch 'device-properties' into acpi-init
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r--drivers/acpi/scan.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 01136b879038..d1ce377db3e9 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -695,26 +695,6 @@ int acpi_device_add(struct acpi_device *device,
return result;
}
-struct acpi_device *acpi_get_next_child(struct device *dev,
- struct acpi_device *child)
-{
- struct acpi_device *adev = ACPI_COMPANION(dev);
- struct list_head *head, *next;
-
- if (!adev)
- return NULL;
-
- head = &adev->children;
- if (list_empty(head))
- return NULL;
-
- if (!child)
- return list_first_entry(head, struct acpi_device, node);
-
- next = child->node.next;
- return next == head ? NULL : list_entry(next, struct acpi_device, node);
-}
-
/* --------------------------------------------------------------------------
Device Enumeration
-------------------------------------------------------------------------- */