From d09c51156658cdb8dcc96e00f8b9f263ba25afbb Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Wed, 10 Aug 2016 11:17:08 +0800 Subject: [PATCH] Revert "usb: dwc3: fix compile failure if config host only mode" This reverts commit 268399dd6510997f0cce07f20ab9fbd5dcd89ee9. --- drivers/usb/dwc3/core.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index ed96f7d113f6..142e117d4ac5 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1053,6 +1053,7 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc); int dwc3_soft_reset(struct dwc3 *dwc); int dwc3_event_buffers_setup(struct dwc3 *dwc); void dwc3_event_buffers_cleanup(struct dwc3 *dwc); +int dwc3_gadget_restart(struct dwc3 *dwc, bool start); bool dwc3_force_mode(struct dwc3 *dwc, u32 mode); #if IS_ENABLED(CONFIG_USB_DWC3_HOST) || IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE) @@ -1074,7 +1075,6 @@ int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state); int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, unsigned cmd, struct dwc3_gadget_ep_cmd_params *params); int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param); -int dwc3_gadget_restart(struct dwc3 *dwc, bool start); #else static inline int dwc3_gadget_init(struct dwc3 *dwc) { return 0; } @@ -1094,8 +1094,6 @@ static inline int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, int cmd, u32 param) { return 0; } -static inline int dwc3_gadget_restart(struct dwc3 *dwc, bool start) -{ return 0; } #endif /* power management interface */ -- 2.34.1