From: Rafael J. Wysocki Date: Mon, 13 Jun 2022 18:26:03 +0000 (+0200) Subject: ACPI: bus: Export acpi_dev_for_each_child() to modules X-Git-Tag: howlett/maple/20220816~254^2~3^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f8128c390e58928b16f197416d417cfa4c65f610;p=users%2Fjedix%2Flinux-maple.git ACPI: bus: Export acpi_dev_for_each_child() to modules Some pieces of modular code can benefit from using acpi_dev_for_each_child(), so export it to modules. Signed-off-by: Rafael J. Wysocki Reviewed-by: Andy Shevchenko --- diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 86fa61a21826..7027ff2edfba 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1102,6 +1102,7 @@ static int acpi_dev_for_one_check(struct device *dev, void *context) return adwc->fn(to_acpi_device(dev), adwc->data); } +EXPORT_SYMBOL_GPL(acpi_dev_for_each_child); int acpi_dev_for_each_child(struct acpi_device *adev, int (*fn)(struct acpi_device *, void *), void *data)