git: 00dbe607b392 - stable/14 - acpi: Use bus_generic_alloc_resource instead of duplicating it
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Apr 2024 19:04:28 UTC
The branch stable/14 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=00dbe607b392c81ffec78f5e8123413cad606a7a
commit 00dbe607b392c81ffec78f5e8123413cad606a7a
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-02-09 18:27:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-04-08 17:53:25 +0000
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
(cherry picked from commit 1fb5445206a5ef2351c32f8bc6beb67605593caa)
---
sys/dev/acpica/acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index d6d1f825f63a..2e0a8a24610d 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -1542,7 +1542,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);
/*