diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2025-10-27 10:57:54 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2025-10-27 11:36:18 +0000 |
| commit | d539f2d9d2ce88f295567578d0e7a3b49d45544b (patch) | |
| tree | 187319d12a332fd6258339376f761cb57e8a6006 | |
| parent | 87cea227e1945a8aa808b72d210f9a391be9b234 (diff) | |
dev/ofw: Register the ofw_cpu xref
This allows it to be referenced by other devices.
Reviewed by: jhibbits
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D53329
| -rw-r--r-- | sys/dev/ofw/ofw_cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ofw/ofw_cpu.c b/sys/dev/ofw/ofw_cpu.c index da66737b6da8..4b12f2e994e3 100644 --- a/sys/dev/ofw/ofw_cpu.c +++ b/sys/dev/ofw/ofw_cpu.c @@ -332,6 +332,7 @@ ofw_cpu_attach(device_t dev) device_printf(dev, "Nominal frequency %dMhz\n", sc->sc_nominal_mhz); + OF_device_register_xref(OF_xref_from_node(node), dev); bus_identify_children(dev); bus_attach_children(dev); return (0); |
