summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-04-20 04:12:02 +0000
committerimp <imp@FreeBSD.org>2006-04-20 04:12:02 +0000
commit09e17e600a13fabcd3d635b0147237e34c7bc0b3 (patch)
tree82c90a082268a65a1e1c4ca7e25628a06234a29a /sys/arm/at91
parent2a2593f381c4a7250c17dcb28fe177ca0d6b97c9 (diff)
downloadFreeBSD-src-09e17e600a13fabcd3d635b0147237e34c7bc0b3.zip
FreeBSD-src-09e17e600a13fabcd3d635b0147237e34c7bc0b3.tar.gz
When returning a resource that we've allocated with rman_reserve_resource,
go ahead and set the rid for that resource.
Diffstat (limited to 'sys/arm/at91')
-rw-r--r--sys/arm/at91/at91.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/at91/at91.c b/sys/arm/at91/at91.c
index e9b99e7..928faa9 100644
--- a/sys/arm/at91/at91.c
+++ b/sys/arm/at91/at91.c
@@ -497,6 +497,7 @@ at91_alloc_resource(device_t dev, device_t child, int type, int *rid,
rle->start = rman_get_start(rle->res);
rle->end = rman_get_end(rle->res);
rle->count = count;
+ rman_set_rid(rle->res, *rid);
}
return (rle->res);
}
OpenPOWER on IntegriCloud