svn commit: r327731 - head/sys/dev/acpica
Warner Losh
imp at FreeBSD.org
Tue Jan 9 16:42:26 UTC 2018
Author: imp
Date: Tue Jan 9 16:42:24 2018
New Revision: 327731
URL: https://svnweb.freebsd.org/changeset/base/327731
Log:
Consolidate two identical copies of sysres_ids.
Modified:
head/sys/dev/acpica/acpi.c
Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c Tue Jan 9 16:28:45 2018 (r327730)
+++ head/sys/dev/acpica/acpi.c Tue Jan 9 16:42:24 2018 (r327731)
@@ -95,6 +95,9 @@ struct acpi_interface {
int num;
};
+static char *sysres_ids[] = { "PNP0C01", "PNP0C02", NULL };
+static char *pcilink_ids[] = { "PNP0C0F", NULL };
+
/* Global mutex for locking access to the ACPI subsystem. */
struct mtx acpi_mutex;
struct callout acpi_sleep_timer;
@@ -1168,7 +1171,6 @@ acpi_sysres_alloc(device_t dev)
struct resource_list *rl;
struct resource_list_entry *rle;
struct rman *rm;
- char *sysres_ids[] = { "PNP0C01", "PNP0C02", NULL };
device_t *children;
int child_count, i;
@@ -1215,9 +1217,6 @@ acpi_sysres_alloc(device_t dev)
}
return (0);
}
-
-static char *pcilink_ids[] = { "PNP0C0F", NULL };
-static char *sysres_ids[] = { "PNP0C01", "PNP0C02", NULL };
/*
* Reserve declared resources for devices found during attach once system
More information about the svn-src-all
mailing list