[PATCH rtems-libbsd] imx6_usbphy: Fix regulator (vbus-supply)
Gedare Bloom
gedare at rtems.org
Fri Apr 17 17:27:36 UTC 2020
push after testing, thanks
On Fri, Apr 17, 2020 at 7:08 AM Christian Mauderer
<christian.mauderer at embedded-brains.de> wrote:
>
> 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
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list