From 32c8eee37fcb88d372410952d3ab88bcf5fdf7e7 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Tue, 12 Sep 2017 17:32:25 +0200 Subject: [PATCH] rockchip: xhci: Convert to livetree Update the Rockchip xhci wrapper driver to support a live device tree. Signed-off-by: Philipp Tomsich --- drivers/usb/host/xhci-rockchip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-rockchip.c b/drivers/usb/host/xhci-rockchip.c index ec55f4e59f..ca3abffba0 100644 --- a/drivers/usb/host/xhci-rockchip.c +++ b/drivers/usb/host/xhci-rockchip.c @@ -6,8 +6,6 @@ */ #include #include -#include -#include #include #include #include @@ -46,7 +44,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 = devfdt_get_addr(dev); + plat->hcd_base = dev_read_addr(dev); if (plat->hcd_base == FDT_ADDR_T_NONE) { error("Can't get the XHCI register base address\n"); return -ENXIO; -- 2.25.1