The branch stable/15 has been updated by andrew:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=dd4dcf661fe7d20a10eaf95008c6ea130432ee21

commit dd4dcf661fe7d20a10eaf95008c6ea130432ee21
Author:     Andrew Turner <[email protected]>
AuthorDate: 2025-10-27 10:57:54 +0000
Commit:     Andrew Turner <[email protected]>
CommitDate: 2026-01-13 14:06:20 +0000

    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
    
    (cherry picked from commit d539f2d9d2ce88f295567578d0e7a3b49d45544b)
---
 sys/dev/ofw/ofw_cpu.c | 1 +
 1 file changed, 1 insertion(+)

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);

Reply via email to