Handle ISA devices in OF_decode_addr(), with the same code that is
used in the EBus case.
This commit is contained in:
parent
7952256e37
commit
23782ab37c
@ -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 New Issue
Block a user