mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-02 19:51:25 +00:00
Only add gicv3 fdt children with a compatible property
Not all gicv3 fdt children have a compatible property. Those that don't are configuration data rather than something that should have a driver attach. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
37f604b49d
commit
92f692fd24
1 changed files with 8 additions and 0 deletions
|
@ -299,6 +299,14 @@ gic_v3_ofw_bus_attach(device_t dev)
|
|||
sizeof(size_cells));
|
||||
/* Iterate through all GIC subordinates */
|
||||
for (node = OF_child(parent); node > 0; node = OF_peer(node)) {
|
||||
/*
|
||||
* Ignore children that lack a compatible property.
|
||||
* Some of them may be for configuration, for example
|
||||
* ppi-partitions.
|
||||
*/
|
||||
if (!OF_hasprop(node, "compatible"))
|
||||
continue;
|
||||
|
||||
/* Allocate and populate devinfo. */
|
||||
di = malloc(sizeof(*di), M_GIC_V3, M_WAITOK | M_ZERO);
|
||||
|
||||
|
|
Loading…
Reference in a new issue