]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/ehci-fsl.c
mvebu: usb: xhci: Add VBUS regulator supply to the host driver
[u-boot] / drivers / usb / host / ehci-fsl.c
index 9c3292182683952d7b488b2bdda5c85f4b41a7d7..7ad50fccee35319e0c5f1aa04b97c6a41ccff22a 100644 (file)
@@ -61,7 +61,7 @@ static int ehci_fsl_ofdata_to_platdata(struct udevice *dev)
        struct ehci_fsl_priv *priv = dev_get_priv(dev);
        const void *prop;
 
-       prop = fdt_getprop(gd->fdt_blob, dev->of_offset, "phy_type",
+       prop = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy_type",
                           NULL);
        if (prop) {
                priv->phy_type = (char *)prop;