]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/xhci-exynos5.c
power: change from meaningless value to error number
[u-boot] / drivers / usb / host / xhci-exynos5.c
index 251885b28b3a9a1e16d6e34edb4ca7ff993e4ce2..82fcd84ef2f20dafddc3308f000434e2343b3ebf 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>
 
@@ -61,7 +61,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
        /*
         * Get the base address for XHCI controller from the device node
         */
-       plat->hcd_base = fdtdec_get_addr(blob, dev->of_offset, "reg");
+       plat->hcd_base = dev_get_addr(dev);
        if (plat->hcd_base == FDT_ADDR_T_NONE) {
                debug("Can't get the XHCI register base address\n");
                return -ENXIO;