Greg:

This patch (as729) fixes up the new endpoints-are-devices code by removing 
the symbolic link to the old "ep_XX" name.

Alan Stern



Signed-off-by: Alan Stern <[EMAIL PROTECTED]>

---

Index: usb-2.6/drivers/usb/core/endpoint.c
===================================================================
--- usb-2.6.orig/drivers/usb/core/endpoint.c
+++ usb-2.6/drivers/usb/core/endpoint.c
@@ -259,13 +259,17 @@ error:
 
 void usb_remove_ep_files(struct usb_host_endpoint *endpoint)
 {
-
        if (endpoint->ep_dev) {
-               sysfs_remove_group(&endpoint->ep_dev->dev.kobj, 
&ep_dev_attr_grp);
-               device_unregister(&endpoint->ep_dev->dev);
+               char name[8];
+               struct device *dev = &endpoint->ep_dev->dev;
+
+               /* remove the symlink to the old-style "ep_XX" directory */
+               sprintf(name, "ep_%02x", endpoint->desc.bEndpointAddress);
+               sysfs_remove_link(&dev->parent->kobj, name);
+
+               sysfs_remove_group(&dev->kobj, &ep_dev_attr_grp);
+               device_unregister(dev);
                endpoint->ep_dev = NULL;
        }
        destroy_endpoint_class();
 }
-
-


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to