[rtems-libbsd commit] imx6_usbphy: Fix regulator (vbus-supply)

Christian Mauderer christianm at rtems.org
Mon Apr 20 07:20:51 UTC 2020


Module:    rtems-libbsd
Branch:    5-freebsd-12
Commit:    d38dbbe18e5315bf69a7c3916d71ef3838d4c20d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=d38dbbe18e5315bf69a7c3916d71ef3838d4c20d

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Fri Apr 17 15:02:20 2020 +0200

imx6_usbphy: Fix regulator (vbus-supply)

Update #3869.

---

 freebsd/sys/arm/freescale/imx/imx6_usbphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freebsd/sys/arm/freescale/imx/imx6_usbphy.c b/freebsd/sys/arm/freescale/imx/imx6_usbphy.c
index 3a3495b..e45ac7a 100644
--- a/freebsd/sys/arm/freescale/imx/imx6_usbphy.c
+++ b/freebsd/sys/arm/freescale/imx/imx6_usbphy.c
@@ -138,7 +138,7 @@ usbphy_attach(device_t dev)
 #ifdef __rtems__
 	node = ofw_bus_get_node(dev);
 	if (OF_hasprop(node, "vbus-supply")) {
-		rv = regulator_get_by_ofw_property(sc->dev, 0, "vbus-supply",
+		rv = regulator_get_by_ofw_property(sc->dev, node, "vbus-supply",
 		    &sc->supply_vbus);
 		if (rv != 0) {
 			device_printf(sc->dev,



More information about the vc mailing list