aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-02-09 18:27:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-02-09 18:27:45 +0000
commit1fb5445206a5ef2351c32f8bc6beb67605593caa (patch)
tree6679a663222698127c76c3aa691d997271a30614
parent0e72b8d36562cb7ecf610dbd7357af830820e4b4 (diff)
downloadsrc-1fb5445206a5ef2351c32f8bc6beb67605593caa.tar.gz
src-1fb5445206a5ef2351c32f8bc6beb67605593caa.zip
acpi: Use bus_generic_alloc_resource instead of duplicating it
No functional change, but it is cleaner to use the existing generic wrappers rather than KOBJ methods directly. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43686
-rw-r--r--sys/dev/acpica/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index b2a337b3487d..2899929c8e6b 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -1533,7 +1533,7 @@ acpi_alloc_resource(device_t bus, device_t child, int type, int *rid,
}
}
} else
- res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type, rid,
+ res = bus_generic_alloc_resource(bus, child, type, rid,
start, end, count, flags);
/*