diff options
author | imp <imp@FreeBSD.org> | 2006-04-20 04:20:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-04-20 04:20:41 +0000 |
commit | cdc20c723d13a2238fdac88bccf7dbb2a54e8778 (patch) | |
tree | 116aef612e128acb10af4e41d3ae3bec7e0d9b53 /sys/sparc64/pci/psycho.c | |
parent | 897af5156bfc8a6dd2e6d4b68aafed08ada6fe1f (diff) | |
download | FreeBSD-src-cdc20c723d13a2238fdac88bccf7dbb2a54e8778.zip FreeBSD-src-cdc20c723d13a2238fdac88bccf7dbb2a54e8778.tar.gz |
Set the rid for any resource obtained from rman_reserve_resource.
Reviewed by: wollman, jmg (as were the other commits fixing this problem)
Diffstat (limited to 'sys/sparc64/pci/psycho.c')
-rw-r--r-- | sys/sparc64/pci/psycho.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c index d79ed71..dd00e25 100644 --- a/sys/sparc64/pci/psycho.c +++ b/sys/sparc64/pci/psycho.c @@ -1057,7 +1057,7 @@ psycho_alloc_resource(device_t bus, device_t child, int type, int *rid, rv = rman_reserve_resource(rm, start, end, count, flags, child); if (rv == NULL) return (NULL); - + rman_set_rid(rv, *rid); bh += rman_get_start(rv); rman_set_bustag(rv, bt); rman_set_bushandle(rv, bh); |