summaryrefslogtreecommitdiff
path: root/drivers/acpi/bus.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-06-13 20:26:03 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-06-20 20:33:10 +0200
commitf8128c390e58928b16f197416d417cfa4c65f610 (patch)
tree5ffae1f1916216148d685cd9f458e3c968a0fd3d /drivers/acpi/bus.c
parentfa98b3985a4a6de6d40b2469b30a3452575f6acf (diff)
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 <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/acpi/bus.c')
-rw-r--r--drivers/acpi/bus.c1
1 files changed, 1 insertions, 0 deletions
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)