From b16c129c2290d26e7b16b4309713c78f6146bc8a Mon Sep 17 00:00:00 2001 From: Faiz Abbas Date: Thu, 15 Feb 2018 17:12:11 +0530 Subject: 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 Reviewed-by: Marek Vasut Reviewed-by: Bin Meng --- board/compulab/cl-som-am57x/cl-som-am57x.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'board/compulab/cl-som-am57x') diff --git a/board/compulab/cl-som-am57x/cl-som-am57x.c b/board/compulab/cl-som-am57x/cl-som-am57x.c index 389eebb589..d7dc8a42e4 100644 --- a/board/compulab/cl-som-am57x/cl-som-am57x.c +++ b/board/compulab/cl-som-am57x/cl-som-am57x.c @@ -16,6 +16,7 @@ #include #include "../common/common.h" #include "../common/eeprom.h" +#include DECLARE_GLOBAL_DATA_PTR; @@ -64,3 +65,15 @@ u32 get_board_rev(void) { return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS); } + +int board_usb_init(int index, enum usb_init_type init) +{ + enable_usb_clocks(index); + return 0; +} + +int board_usb_cleanup(int index, enum usb_init_type init) +{ + disable_usb_clocks(index); + return 0; +} -- cgit