mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
macio: Set resource map size
PR: 278278
Fixes: af081ec6f7
("powerpc: powermac: Use bus_generic_rman_*")
This commit is contained in:
parent
442d351bd2
commit
f03a2e7b59
|
@ -686,6 +686,7 @@ macio_map_resource(device_t bus, device_t child, struct resource *r,
|
|||
length, args.memattr);
|
||||
if (map->r_vaddr == NULL)
|
||||
return (ENOMEM);
|
||||
map->r_size = length;
|
||||
map->r_bustag = &bs_le_tag;
|
||||
map->r_bushandle = (bus_space_handle_t)map->r_vaddr;
|
||||
return (0);
|
||||
|
|
Loading…
Reference in a new issue