The branch stable/14 has been updated by avg:

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

commit 19fdd9fd613d2a0b7bfb19ad3d3b96a54c04a4b7
Author:     Andriy Gapon <a...@freebsd.org>
AuthorDate: 2025-05-19 09:06:55 +0000
Commit:     Andriy Gapon <a...@freebsd.org>
CommitDate: 2025-06-27 07:37:55 +0000

    dwc_otg_fdt: do not create and leak extra usbus child
    
    dwc_otg_init() already takes care of creating the bus and setting up sc
    to point to it.
    
    Fixes:          518da7ace813e
    
    (cherry picked from commit 97c799661a76b78963fd9f92a7e6bb452ebba999)
---
 sys/dev/usb/controller/dwc_otg_fdt.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/dev/usb/controller/dwc_otg_fdt.c 
b/sys/dev/usb/controller/dwc_otg_fdt.c
index 1ef36ab830ed..ce76f088a981 100644
--- a/sys/dev/usb/controller/dwc_otg_fdt.c
+++ b/sys/dev/usb/controller/dwc_otg_fdt.c
@@ -141,10 +141,6 @@ dwc_otg_attach(device_t dev)
        if (sc->sc_otg.sc_irq_res == NULL)
                goto error;
 
-       sc->sc_otg.sc_bus.bdev = device_add_child(dev, "usbus", -1);
-       if (sc->sc_otg.sc_bus.bdev == NULL)
-               goto error;
-
        err = dwc_otg_init(&sc->sc_otg);
        if (err == 0) {
                err = device_probe_and_attach(sc->sc_otg.sc_bus.bdev);

Reply via email to