summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2018-02-15 17:12:11 +0530
committerMarek Vasut <marex@denx.de>2018-02-15 13:44:30 +0100
commitb16c129c2290d26e7b16b4309713c78f6146bc8a (patch)
treeb8185dabe62b6b6a89e2b974d7910f31826a1fc1 /drivers/usb
parent163f8858ae8bfcd94ef8d6c4ed75ff3abb642450 (diff)
usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions
board_usb_init()/_cleanup() should be in board files and don't have a place in the xhci-omap driver. Weak versions for board_usb_init()/_cleanup() already exist in common/usb.c (for host mode) and drivers/usb/gadget/g_dnl.c (for gadget mode). Therefore, remove init and cleanup functions from xhci-omap and implement them in the board files. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-omap.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c
index d6c5744818..b814500bdb 100644
--- a/drivers/usb/host/xhci-omap.c
+++ b/drivers/usb/host/xhci-omap.c
@@ -27,28 +27,6 @@ DECLARE_GLOBAL_DATA_PTR;
static struct omap_xhci omap;
-__weak int omap_xhci_board_usb_init(int index, enum usb_init_type init)
-{
- enable_usb_clocks(index);
- return 0;
-}
-
-int board_usb_init(int index, enum usb_init_type init)
-{
- return omap_xhci_board_usb_init(index, init);
-}
-
-__weak int omap_xhci_board_usb_cleanup(int index, enum usb_init_type init)
-{
- disable_usb_clocks(index);
- return 0;
-}
-
-int board_usb_cleanup(int index, enum usb_init_type init)
-{
- return omap_xhci_board_usb_cleanup(index, init);
-}
-
static int omap_xhci_core_init(struct omap_xhci *omap)
{
int ret = 0;