#define QLEN   qlen
 
-#ifdef CONFIG_USB_GADGET_DUALSPEED
-#define DEVSPEED       USB_SPEED_HIGH
-#else   /* full speed (low speed doesn't do bulk) */
-#define DEVSPEED        USB_SPEED_FULL
-#endif
-
 /*-------------------------------------------------------------------------*/
 
 #define xprintk(d, level, fmt, args...) \
        NULL
 };
 
-#ifdef CONFIG_USB_GADGET_DUALSPEED
-
 /*
  * usb 2.0 devices need to expose both high speed and full speed
  * descriptors, unless they only run at full speed.
 /* maxpacket and other transfer characteristics vary by speed. */
 #define ep_desc(g, hs, fs) (((g)->speed == USB_SPEED_HIGH)?(hs):(fs))
 
-#else
-
-/* if there's no high speed support, maxpacket doesn't change. */
-#define ep_desc(g, hs, fs) (((void)(g)), (fs))
-
-#endif /* !CONFIG_USB_GADGET_DUALSPEED */
-
 /*-------------------------------------------------------------------------*/
 
 /* descriptors that are built on-demand */
 {
        int                                     len;
        const struct usb_descriptor_header      **function;
-#ifdef CONFIG_USB_GADGET_DUALSPEED
        int                                     hs = (speed == USB_SPEED_HIGH);
 
        if (type == USB_DT_OTHER_SPEED_CONFIG)
        } else {
                function = fs_printer_function;
        }
-#else
-       function = fs_printer_function;
-#endif
 
        if (index >= device_desc.bNumConfigurations)
                return -EINVAL;
                                value = min(wLength, (u16) sizeof device_desc);
                                memcpy(req->buf, &device_desc, value);
                                break;
-#ifdef CONFIG_USB_GADGET_DUALSPEED
                        case USB_DT_DEVICE_QUALIFIER:
                                if (!gadget_is_dualspeed(gadget))
                                        break;
                                if (!gadget_is_dualspeed(gadget))
                                        break;
                                /* FALLTHROUGH */
-#endif /* CONFIG_USB_GADGET_DUALSPEED */
                        case USB_DT_CONFIG:
                                value = config_buf(gadget->speed, req->buf,
                                                wValue >> 8,
                goto autoconf_fail;
        out_ep->driver_data = out_ep;   /* claim */
 
-#ifdef CONFIG_USB_GADGET_DUALSPEED
        /* assumes that all endpoints are dual-speed */
        hs_ep_in_desc.bEndpointAddress = fs_ep_in_desc.bEndpointAddress;
        hs_ep_out_desc.bEndpointAddress = fs_ep_out_desc.bEndpointAddress;
-#endif /* DUALSPEED */
 
        usb_gadget_set_selfpowered(gadget);
 
 /*-------------------------------------------------------------------------*/
 
 static struct usb_gadget_driver printer_driver = {
-       .max_speed      = DEVSPEED,
+       .max_speed      = USB_SPEED_HIGH,
 
        .function       = (char *) driver_desc,
        .unbind         = printer_unbind,