]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/core/devio.c
sysfs: add /sys/dev/{char,block} to lookup sysfs path by major:minor
[linux-2.6-omap-h63xx.git] / drivers / usb / core / devio.c
index 54a350ccd0333870fc4a7c01371f2dd1e7042d78..6fbc8f5ab80cf3e114e26e1be58cf85214faa9b3 100644 (file)
@@ -1792,6 +1792,11 @@ int __init usb_devio_init(void)
                usb_classdev_class = NULL;
                goto out;
        }
+       /* devices of this class shadow the major:minor of their parent
+        * device, so clear ->dev_kobj to prevent adding duplicate entries
+        * to /sys/dev
+        */
+       usb_classdev_class->dev_kobj = NULL;
 
        usb_register_notify(&usbdev_nb);
 #endif