Fix the ofw parent check in arm64 nexus

OF_parent returns 0 for no parent. Fix the check in teh arm64
nexus_fdt_activate_resource.

Sponsored by:	Arm Ltd
This commit is contained in:
Andrew Turner 2023-03-06 09:54:57 +00:00
parent a78e46a7db
commit ae60314c94

View File

@ -565,7 +565,7 @@ nexus_fdt_activate_resource(device_t bus, device_t child, int type, int rid,
node = ofw_bus_get_node(child);
if (node != -1) {
parent = OF_parent(node);
if (parent != -1 &&
if (parent != 0 &&
OF_hasprop(parent, "nonposted-mmio")) {
flags |= BUS_SPACE_MAP_NONPOSTED;
}