Skip to content

Commit aff0dbd

Browse files
committed
ACPI: scan: Make acpi_walk_dep_device_list()
Because acpi_walk_dep_device_list() is only called by the code in the file in which it is defined, make it static, drop the export of it and drop its header from acpi.h. Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Hans de Goede <[email protected]>
1 parent ad4d451 commit aff0dbd

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

drivers/acpi/scan.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,9 +2139,9 @@ static int acpi_scan_clear_dep(struct acpi_dep_data *dep, void *data)
21392139
* negative value is returned by the callback then the loop is broken and that
21402140
* value is returned as the final error.
21412141
*/
2142-
int acpi_walk_dep_device_list(acpi_handle handle,
2143-
int (*callback)(struct acpi_dep_data *, void *),
2144-
void *data)
2142+
static int acpi_walk_dep_device_list(acpi_handle handle,
2143+
int (*callback)(struct acpi_dep_data *, void *),
2144+
void *data)
21452145
{
21462146
struct acpi_dep_data *dep, *tmp;
21472147
int ret = 0;
@@ -2158,7 +2158,6 @@ int acpi_walk_dep_device_list(acpi_handle handle,
21582158

21592159
return ret > 0 ? 0 : ret;
21602160
}
2161-
EXPORT_SYMBOL_GPL(acpi_walk_dep_device_list);
21622161

21632162
/**
21642163
* acpi_dev_clear_dependencies - Inform consumers that the device is now active

include/linux/acpi.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,6 @@ extern bool acpi_driver_match_device(struct device *dev,
666666
const struct device_driver *drv);
667667
int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *);
668668
int acpi_device_modalias(struct device *, char *, int);
669-
int acpi_walk_dep_device_list(acpi_handle handle,
670-
int (*callback)(struct acpi_dep_data *, void *),
671-
void *data);
672669

673670
struct platform_device *acpi_create_platform_device(struct acpi_device *,
674671
struct property_entry *);

0 commit comments

Comments
 (0)