Date: Fri, 27 Jun 2025 07:38:17 GMT From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 19fdd9fd613d - stable/14 - dwc_otg_fdt: do not create and leak extra usbus child Message-ID: <202506270738.55R7cH2i089480@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=19fdd9fd613d2a0b7bfb19ad3d3b96a54c04a4b7 commit 19fdd9fd613d2a0b7bfb19ad3d3b96a54c04a4b7 Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2025-05-19 09:06:55 +0000 Commit: Andriy Gapon <avg@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506270738.55R7cH2i089480>