diff options
author | Ramon Fried <ramon.fried@gmail.com> | 2018-09-21 13:35:43 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-30 13:00:35 -0400 |
commit | cd8c3aec7fe1aa8e72b1be24675e0de37a66ef6e (patch) | |
tree | eaf2612b25f13e8c5463d46675275d249906915a /drivers/usb/host | |
parent | 95a077217b06cd8e4ad8cacb526bf430185dc0a3 (diff) | |
download | u-boot-cd8c3aec7fe1aa8e72b1be24675e0de37a66ef6e.tar.gz u-boot-cd8c3aec7fe1aa8e72b1be24675e0de37a66ef6e.tar.bz2 u-boot-cd8c3aec7fe1aa8e72b1be24675e0de37a66ef6e.zip |
ehci: Replace board_prepare_usb with board_usb_init
Use standard board_usb_init() instead of the specific board_prepare_usb.
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-msm.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index 17bfa7c02f..db982624dc 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -38,11 +38,6 @@ struct msm_ehci_priv { struct ulpi_viewport ulpi_vp; /* ULPI Viewport */ }; -int __weak board_prepare_usb(enum usb_init_type type) -{ - return 0; -} - static void setup_usb_phy(struct msm_ehci_priv *priv) { /* Select and enable external configuration with USB PHY */ @@ -102,7 +97,7 @@ static int ehci_usb_probe(struct udevice *dev) hcor = (struct ehci_hcor *)((phys_addr_t)hccr + HC_LENGTH(ehci_readl(&(hccr)->cr_capbase))); - ret = board_prepare_usb(USB_INIT_HOST); + ret = board_usb_init(0, USB_INIT_HOST); if (ret < 0) return ret; @@ -124,7 +119,7 @@ static int ehci_usb_remove(struct udevice *dev) reset_usb_phy(p); - ret = board_prepare_usb(USB_INIT_DEVICE); /* Board specific hook */ + ret = board_usb_init(0, USB_INIT_DEVICE); /* Board specific hook */ if (ret < 0) return ret; |