aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/core.c
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2017-01-23 14:54:52 -0800
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-24 16:19:04 +0200
commit0f3a7459ae2fd47cce099735ea3260979729cbfd (patch)
tree64be04ce1dbf3d65c5996a7cc7d77edfa80399e2 /drivers/usb/dwc2/core.c
parentusb: gadget: f_hid: fix: Move IN request allocation to set_alt() (diff)
downloadlinux-dev-0f3a7459ae2fd47cce099735ea3260979729cbfd.tar.xz
linux-dev-0f3a7459ae2fd47cce099735ea3260979729cbfd.zip
usb: dwc2: Remove unused otg_ver parameter
The otg_ver parameter only controls the SRP pulsing method and defaults to the 1.3 behavior. It is unused and can be removed. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/core.c')
-rw-r--r--drivers/usb/dwc2/core.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c
index 0446f3d6d54a..0d322b7d4b28 100644
--- a/drivers/usb/dwc2/core.c
+++ b/drivers/usb/dwc2/core.c
@@ -751,11 +751,6 @@ bool dwc2_force_mode_if_needed(struct dwc2_hsotg *hsotg, bool host)
return dwc2_force_mode(hsotg, host);
}
-u16 dwc2_get_otg_version(struct dwc2_hsotg *hsotg)
-{
- return hsotg->params.otg_ver == 1 ? 0x0200 : 0x0103;
-}
-
bool dwc2_is_controller_alive(struct dwc2_hsotg *hsotg)
{
if (dwc2_readl(hsotg->regs + GSNPSID) == 0xffffffff)