[PATCH rtems-libbsd] imx6_usbphy: Fix regulator (vbus-supply)
Christian Mauderer
christian.mauderer at embedded-brains.de
Fri Apr 17 13:08:13 UTC 2020
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 7df2e124..508e49c8 100644
--- a/freebsd/sys/arm/freescale/imx/imx6_usbphy.c
+++ b/freebsd/sys/arm/freescale/imx/imx6_usbphy.c
@@ -134,7 +134,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,
--
2.16.4
More information about the devel
mailing list