diff options
author | imp <imp@FreeBSD.org> | 2006-04-20 04:12:02 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-04-20 04:12:02 +0000 |
commit | 09e17e600a13fabcd3d635b0147237e34c7bc0b3 (patch) | |
tree | 82c90a082268a65a1e1c4ca7e25628a06234a29a /sys/arm/sa11x0 | |
parent | 2a2593f381c4a7250c17dcb28fe177ca0d6b97c9 (diff) | |
download | FreeBSD-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/sa11x0')
-rw-r--r-- | sys/arm/sa11x0/sa11x0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/sa11x0/sa11x0.c b/sys/arm/sa11x0/sa11x0.c index f0d6456..f97b6f2 100644 --- a/sys/arm/sa11x0/sa11x0.c +++ b/sys/arm/sa11x0/sa11x0.c @@ -127,6 +127,8 @@ sa1110_alloc_resource(device_t bus, device_t child, int type, int *rid, res = rman_reserve_resource(&sa11x0_softc->sa11x0_rman, *rid, *rid, count, flags, child); + if (res != NULL) + rman_set_rid(res, *rid); return (res); } |