Message ID | 1505230349-5412-5-git-send-email-philipp.tomsich@theobroma-systems.com |
---|---|
State | Accepted |
Commit | a9d3037a8e4f045434184623eadbe86fa3844b28 |
Delegated to: | Marek Vasut |
Headers | show |
Series | rockchip: enable live tree on the RK3399 and validate on the RK3399-Q7 | expand |
On 12 September 2017 at 09:32, Philipp Tomsich <philipp.tomsich@theobroma-systems.com> wrote: > Update the DWC2 USB driver to support a live tree. > > Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> > --- > > drivers/usb/host/dwc2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 64c42ac..0ed72d5 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;
Update the DWC2 USB driver to support a live tree. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> --- drivers/usb/host/dwc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)