summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c4
-rw-r--r--sys/dev/acpica/acpi_resource.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 59142b0..03c9664 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -901,7 +901,7 @@ acpi_sysres_alloc(device_t dev)
struct rman *rm;
rl = BUS_GET_RESOURCE_LIST(device_get_parent(dev), dev);
- SLIST_FOREACH(rle, rl, link) {
+ STAILQ_FOREACH(rle, rl, link) {
if (rle->res != NULL) {
device_printf(dev, "duplicate resource for %lx\n", rle->start);
continue;
@@ -947,7 +947,7 @@ acpi_sysres_find(device_t dev, int type, u_long addr)
goto out;
rl = BUS_GET_RESOURCE_LIST(device_get_parent(dev), dev);
- SLIST_FOREACH(rle, rl, link) {
+ STAILQ_FOREACH(rle, rl, link) {
if (type == rle->type && addr >= rle->start &&
addr < rle->start + rle->count)
break;
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c
index e8c13fb..f52ec51 100644
--- a/sys/dev/acpica/acpi_resource.c
+++ b/sys/dev/acpica/acpi_resource.c
@@ -691,7 +691,7 @@ acpi_sysres_attach(device_t dev)
bus = device_get_parent(dev);
dev_rl = BUS_GET_RESOURCE_LIST(bus, dev);
bus_rl = BUS_GET_RESOURCE_LIST(device_get_parent(bus), bus);
- SLIST_FOREACH(dev_rle, dev_rl, link) {
+ STAILQ_FOREACH(dev_rle, dev_rl, link) {
if (dev_rle->type != SYS_RES_IOPORT && dev_rle->type != SYS_RES_MEMORY)
continue;
@@ -701,7 +701,7 @@ acpi_sysres_attach(device_t dev)
type = dev_rle->type;
done = FALSE;
- SLIST_FOREACH(bus_rle, bus_rl, link) {
+ STAILQ_FOREACH(bus_rle, bus_rl, link) {
if (bus_rle->type != type)
continue;
OpenPOWER on IntegriCloud