mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Handle ISA devices in OF_decode_addr(), with the same code that is
used in the EBus case.
This commit is contained in:
parent
8fb2b56541
commit
894b85b150
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ OF_decode_addr(phandle_t node, int *space, bus_addr_t *addr)
|
|||
if (OF_getprop(bus, "name", name, sizeof(name)) == -1)
|
||||
return (ENXIO);
|
||||
name[sizeof(name) - 1] = '\0';
|
||||
if (strcmp(name, "ebus") == 0) {
|
||||
if (strcmp(name, "ebus") == 0 || strcmp(name, "isa") == 0) {
|
||||
if (OF_getprop(node, "reg", ®.isa, sizeof(reg.isa)) == -1)
|
||||
return (ENXIO);
|
||||
rsz = OF_getprop(bus, "ranges", range.isa, sizeof(range.isa));
|
||||
|
|
|
|||
Loading…
Reference in a new issue