===================================================================
@@ -1070,6 +1070,12 @@ int acpi_bus_for_each_dev(int (*fn)(stru
}
EXPORT_SYMBOL_GPL(acpi_bus_for_each_dev);
+int acpi_dev_for_each_child(struct acpi_device *adev,
+ int (*fn)(struct device *, void *), void *data)
+{
+ return device_for_each_child(&adev->dev, data, fn);
+}
+
/* --------------------------------------------------------------------------
Initialization/Cleanup
-------------------------------------------------------------------------- */
===================================================================
@@ -481,6 +481,8 @@ void acpi_initialize_hp_context(struct a
extern struct bus_type acpi_bus_type;
int acpi_bus_for_each_dev(int (*fn)(struct device *, void *), void *data);
+int acpi_dev_for_each_child(struct acpi_device *adev,
+ int (*fn)(struct device *, void *), void *data);
/*
* Events