Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / drivers / usb / host / ehci-zynq.c
index 1e3b8001f3af8c968a50cd99f4cd3d9a25e85620..939c30999eeb18b24f7a9273520491e731675b0d 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2014, Xilinx, Inc
  *
  * USB Low level initialization(Specific to zynq)
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -26,7 +25,7 @@ static int ehci_zynq_ofdata_to_platdata(struct udevice *dev)
 {
        struct zynq_ehci_priv *priv = dev_get_priv(dev);
 
-       priv->ehci = (struct usb_ehci *)dev_get_addr_ptr(dev);
+       priv->ehci = (struct usb_ehci *)devfdt_get_addr_ptr(dev);
        if (!priv->ehci)
                return -EINVAL;