diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-09-12 17:32:27 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2017-09-27 12:12:22 +0200 |
commit | a9d3037a8e4f045434184623eadbe86fa3844b28 (patch) | |
tree | 85949e946f265387ee5b5707d63ffbf8e37601c9 /drivers/usb | |
parent | 32c8eee37fcb88d372410952d3ab88bcf5fdf7e7 (diff) | |
download | u-boot-a9d3037a8e4f045434184623eadbe86fa3844b28.tar.gz |
usb: dwc2: convert to livetree
Update the DWC2 USB driver to support a live tree.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/dwc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 64c42ac471..0ed72d5ae7 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -1245,7 +1245,7 @@ static int dwc2_usb_ofdata_to_platdata(struct udevice *dev) struct dwc2_priv *priv = dev_get_priv(dev); fdt_addr_t addr; - addr = devfdt_get_addr(dev); + addr = dev_read_addr(dev); if (addr == FDT_ADDR_T_NONE) return -EINVAL; priv->regs = (struct dwc2_core_regs *)addr; |