[rtems-libbsd commit] imx6_usbphy: Fix regulator (vbus-supply)
Christian Mauderer
christianm at rtems.org
Mon Apr 20 07:19:57 UTC 2020
Module: rtems-libbsd
Branch: master
Commit: 4fad914cee0d3c8e148420b0f74cd4ec8a138569
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4fad914cee0d3c8e148420b0f74cd4ec8a138569
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