]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: host: ehci-generic: convert to livetree
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 12 Sep 2017 15:32:28 +0000 (17:32 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 27 Sep 2017 10:12:23 +0000 (12:12 +0200)
Update the generic EHCI driver to support a live tree.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/usb/host/ehci-generic.c

index 03f8d321af13e3ddb04c46ae9a66d16b82defe73..18e1e0ee8852a7e15ab65cb41b90512805f34ed5 100644 (file)
@@ -108,7 +108,7 @@ static int ehci_usb_probe(struct udevice *dev)
                }
        }
 
-       hccr = map_physmem(devfdt_get_addr(dev), 0x100, MAP_NOCACHE);
+       hccr = map_physmem(dev_read_addr(dev), 0x100, MAP_NOCACHE);
        hcor = (struct ehci_hcor *)((uintptr_t)hccr +
                                    HC_LENGTH(ehci_readl(&hccr->cr_capbase)));