]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/xhci-exynos5.c
usb: dwc2: invalidate the dcache before starting the DMA
[u-boot] / drivers / usb / host / xhci-exynos5.c
index 28416ed1064914bbdf8c8fce1258381c182d1115..b3f48b34e222d2b19f16254dc530325e50eb7ce9 100644 (file)
@@ -24,7 +24,7 @@
 #include <asm/arch/power.h>
 #include <asm/arch/xhci-exynos.h>
 #include <asm/gpio.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/usb/dwc3.h>
 
@@ -68,7 +68,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
        }
 
        depth = 0;
-       node = fdtdec_next_compatible_subnode(blob, dev->of_offset,
+       node = fdtdec_next_compatible_subnode(blob, dev_of_offset(dev),
                                COMPAT_SAMSUNG_EXYNOS5_USB3_PHY, &depth);
        if (node <= 0) {
                debug("XHCI: Can't get device node for usb3-phy controller\n");