diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 3144092d828b..0ab2f565c12d 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -909,13 +909,6 @@ static int dummy_udc_start(struct usb_gadget_driver *driver, | |||
909 | dum->ep[0].ep.maxpacket = 64; | 909 | dum->ep[0].ep.maxpacket = 64; |
910 | } | 910 | } |
911 | 911 | ||
912 | if (dum->gadget.speed == USB_SPEED_SUPER) | ||
913 | dum->gadget.is_otg = | ||
914 | (dummy_hcd_to_hcd(dum->ss_hcd)->self.otg_port != 0); | ||
915 | else | ||
916 | dum->gadget.is_otg = | ||
917 | (dummy_hcd_to_hcd(dum->hs_hcd)->self.otg_port != 0); | ||
918 | |||
919 | driver->driver.bus = NULL; | 912 | driver->driver.bus = NULL; |
920 | dum->driver = driver; | 913 | dum->driver = driver; |
921 | dum->gadget.dev.driver = &driver->driver; | 914 | dum->gadget.dev.driver = &driver->driver; |
@@ -990,6 +983,10 @@ static void init_dummy_udc_hw(struct dummy *dum) | |||
990 | dum->gadget.ep0 = &dum->ep[0].ep; | 983 | dum->gadget.ep0 = &dum->ep[0].ep; |
991 | list_del_init(&dum->ep[0].ep.ep_list); | 984 | list_del_init(&dum->ep[0].ep.ep_list); |
992 | INIT_LIST_HEAD(&dum->fifo_req.queue); | 985 | INIT_LIST_HEAD(&dum->fifo_req.queue); |
986 | |||
987 | #ifdef CONFIG_USB_OTG | ||
988 | dum->gadget.is_otg = 1; | ||
989 | #endif | ||
993 | } | 990 | } |
994 | 991 | ||
995 | static int dummy_udc_probe (struct platform_device *pdev) | 992 | static int dummy_udc_probe (struct platform_device *pdev) |