summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-06-28 03:36:37 +0000
committerimp <imp@FreeBSD.org>2004-06-28 03:36:37 +0000
commitc0e6c73704f39e916c12ce6fce530bfa50987ed0 (patch)
treeb6cad2115fe0a26f5e57655a35ef5a0bd773cc65 /sys/dev/acpica
parentc83f7f6bdcdacf5908121e3c3e902febfcdffca7 (diff)
downloadFreeBSD-src-c0e6c73704f39e916c12ce6fce530bfa50987ed0.zip
FreeBSD-src-c0e6c73704f39e916c12ce6fce530bfa50987ed0.tar.gz
rman_reserve_resource doesn't set the bushandle, so we have to do it here.
Badness noted by: njl Perforce reply not read by: imp
Diffstat (limited to 'sys/dev/acpica')
-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 286d870..93bed57 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -893,7 +893,7 @@ acpi_alloc_resource(device_t bus, device_t child, int type, int *rid,
/* Copy the bus tag and handle from the pre-allocated resource. */
rman_set_bustag(res, rman_get_bustag(rle->res));
- rman_set_bushandle(res, rman_get_bushandle(res));
+ rman_set_bushandle(res, rman_get_start(res));
/* If requested, activate the resource using the parent's method. */
if (flags & RF_ACTIVE)
OpenPOWER on IntegriCloud