aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2022-02-19 17:08:41 -0600
committerMarek Vasut <marex@denx.de>2022-02-23 05:25:17 +0100
commit0935dbf4c9d97574d04e6d2e1bda2abd7135c073 (patch)
treeb98b7d88c2938242c86f391667ff983f548ad91b /arch
parent17a0dc6abfdbf392f6a27074f2633608038c4221 (diff)
downloadu-boot-0935dbf4c9d97574d04e6d2e1bda2abd7135c073.zip
u-boot-0935dbf4c9d97574d04e6d2e1bda2abd7135c073.tar.gz
u-boot-0935dbf4c9d97574d04e6d2e1bda2abd7135c073.tar.bz2
usb: ehci-omap: Drop dead code
omap_ehci_hcd_stop appears to be dead code, and omap_ehci_hcd_init is only called by the probe function, so it can be static to that function. Remove both from the header along with some additional checking for DM_USB. Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/ehci-omap.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/include/asm/ehci-omap.h b/arch/arm/include/asm/ehci-omap.h
index f970bba..2b51b5e 100644
--- a/arch/arm/include/asm/ehci-omap.h
+++ b/arch/arm/include/asm/ehci-omap.h
@@ -123,17 +123,4 @@ struct omap_ehci {
u32 insreg08; /* 0xb0 */
};
-#if !CONFIG_IS_ENABLED(DM_USB) || !CONFIG_IS_ENABLED(OF_CONTROL)
-/*
- * FIXME: forward declaration of this structs needed because omap got the
- * ehci implementation backwards. move out ehci_hcd_x from board files
- */
-struct ehci_hccr;
-struct ehci_hcor;
-
-int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata,
- struct ehci_hccr **hccr, struct ehci_hcor **hcor);
-int omap_ehci_hcd_stop(void);
-#endif
-
#endif /* _OMAP_COMMON_EHCI_H_ */