The USB debugging is not needed in this file, as it's available in
either usbfs or sysfs.  No need to clutter up the driver too.

Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

--- a/zd_usb.c
+++ b/zd_usb.c
@@ -135,52 +135,6 @@ static u16 usb_addr(struct zd_usb *usb, 
 
 /* USB device initialization */
 
-#ifdef ZD1211_DEBUG
-static void print_endpoint_descriptor(int i,
-                                     struct usb_endpoint_descriptor *desc)
-{
-       int in;
-       const char *xfer_type = NULL;
-
-       in = desc->bEndpointAddress & USB_DIR_IN;
-
-       switch (desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) {
-       case USB_ENDPOINT_XFER_CONTROL:
-               xfer_type = "control";
-               break;
-       case USB_ENDPOINT_XFER_ISOC:
-               xfer_type = "isoc";
-               break;
-       case USB_ENDPOINT_XFER_BULK:
-               xfer_type = "bulk";
-               break;
-       case USB_ENDPOINT_XFER_INT:
-               xfer_type = "int";
-               break;
-       default:
-               xfer_type = "unknown";
-               break;
-       };
-
-       PDEBUG("ep%d %s xfer %s max size %u",
-              i, in ? "in" : "out", xfer_type,
-               (unsigned int)le16_to_cpu(desc->wMaxPacketSize));
-}
-
-static void scan_endpoints(struct usb_interface *intf)
-{
-       int i;
-       struct usb_host_interface *host_intf = intf->cur_altsetting;
-
-       for (i = 0; i < host_intf->desc.bNumEndpoints; i++) {
-               struct usb_endpoint_descriptor *ep_desc =
-                       &host_intf->endpoint[i].desc;
-
-               print_endpoint_descriptor(i, ep_desc);
-       }
-}
-#endif /* ZD1211_DEBUG */
-
 static int request_fw_file(
        const struct firmware **fw, const char *name, struct device *device)
 {
@@ -882,10 +836,6 @@ static int probe(struct usb_interface *i
                r = -ENOMEM; goto error;
        }
 
-#ifdef ZD1211_DEBUG
-       scan_endpoints(intf);
-#endif
-
        r = upload_firmware(udev);
        if (r) {
                PERROR("Couldn't load firmware. Error number %d", r);


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs

Reply via email to