]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: ehci-msm: Use dev interface to get device address
authorKever Yang <kever.yang@rock-chips.com>
Wed, 4 Mar 2020 00:59:49 +0000 (08:59 +0800)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Mon, 30 Mar 2020 01:48:53 +0000 (03:48 +0200)
Use dev_read_addr_ptr() instead of devfdt_get_addr() so that we can support
live DT.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/usb/host/ehci-msm.c

index 5c257ccf4d226b04772f34601b65e673f2810cd5..dd92808ff7b37a19c5c4b9b980c164378d4960ef 100644 (file)
@@ -10,8 +10,6 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
-#include <fdtdec.h>
-#include <linux/libfdt.h>
 #include <usb.h>
 #include <usb/ehci-ci.h>
 #include <usb/ulpi.h>
@@ -108,7 +106,7 @@ static int ehci_usb_ofdata_to_platdata(struct udevice *dev)
        struct msm_ehci_priv *priv = dev_get_priv(dev);
 
        priv->ulpi_vp.port_num = 0;
-       priv->ehci = (void *)devfdt_get_addr(dev);
+       priv->ehci = dev_read_addr_ptr(dev);
 
        if (priv->ehci == (void *)FDT_ADDR_T_NONE)
                return -EINVAL;