X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fehci-atmel.c;h=6900848df1e95cdb27e3c38675a94561b0fe35ed;hb=747fed56d3876d7de89959f9a927901e02166151;hp=a5c6d349747ff247139bca0278f4ad37de6c2e23;hpb=c6a0f7f1356dd68a269dcfa34aae8f75a01ef7fe;p=oweals%2Fu-boot.git diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index a5c6d34974..6900848df1 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2012 * Atmel Semiconductor * Written-by: Bo Shen - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -15,9 +14,7 @@ #include "ehci.h" -DECLARE_GLOBAL_DATA_PTR; - -#ifndef CONFIG_DM_USB +#if !CONFIG_IS_ENABLED(DM_USB) int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr, struct ehci_hcor **hcor) @@ -96,7 +93,7 @@ static int ehci_atmel_probe(struct udevice *dev) /* * Get the base address for EHCI controller from the device node */ - hcd_base = dev_get_addr(dev); + hcd_base = devfdt_get_addr(dev); if (hcd_base == FDT_ADDR_T_NONE) { debug("Can't get the EHCI register base address\n"); return -ENXIO;