usb: dwc3: fix compile failure if config host only mode
authorWu Liang feng <wulf@rock-chips.com>
Mon, 18 Apr 2016 03:37:13 +0000 (11:37 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Mon, 18 Apr 2016 08:59:43 +0000 (16:59 +0800)
commit268399dd6510997f0cce07f20ab9fbd5dcd89ee9
tree65c6174c69a059b037c4e7a1cbd00ea270b05d45
parent151c8e994caf8ab68f5c53995a1eebf2daf643c5
usb: dwc3: fix compile failure if config host only mode

This patch fixes following compile error in dwc3 if select
CONFIG_USB_DWC3_HOST.

drivers/usb/dwc3/core.c:874: undefined reference to `dwc3_gadget_restart'
drivers/usb/dwc3/core.c:880: undefined reference to `dwc3_gadget_restart'

which was caused by commit
commit 9607f47dfec23c5773d74e45ed561859eabce2b7
usb: dwc3: add functions to set force mode

Change-Id: Id0abaf89fba006609dbf2e7a771149453465b371
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/core.h