mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Only look for the ranges property when we have children. This fixes booting
on systems with a gicv2, but no PCIe so no gicv2m. Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
1436226800
commit
2c0ed87ef8
1 changed files with 6 additions and 1 deletions
|
|
@ -158,12 +158,17 @@ arm_gic_fdt_attach(device_t dev)
|
|||
OF_getencprop(root, "#size-cells", &sc->sc_size_cells,
|
||||
sizeof(sc->sc_size_cells));
|
||||
|
||||
/* If we have no children don't probe for them */
|
||||
child = OF_child(root);
|
||||
if (child == 0)
|
||||
return (0);
|
||||
|
||||
if (gic_fill_ranges(root, sc) < 0) {
|
||||
device_printf(dev, "could not get ranges\n");
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
for (child = OF_child(root); child != 0; child = OF_peer(child)) {
|
||||
for (; child != 0; child = OF_peer(child)) {
|
||||
dinfo = malloc(sizeof(*dinfo), M_DEVBUF, M_WAITOK | M_ZERO);
|
||||
|
||||
if (ofw_bus_gen_setup_devinfo(&dinfo->obdinfo, child) != 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue