]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: register usb-serial ports in the proper place in sysfs
authorGreg Kroah-Hartman <greg@kroah.com>
Mon, 8 Dec 2003 03:10:51 +0000 (19:10 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 8 Dec 2003 03:10:51 +0000 (19:10 -0800)
They should be bound to the interface the driver is attached to, not
the device.

drivers/usb/serial/usb-serial.c

index 96747544c78836623424ac3fdeed52af72ff4f98..ec610ee4aa1cdd54d372c3d4517b2154ad246d4b 100644 (file)
@@ -1242,7 +1242,7 @@ int usb_serial_probe(struct usb_interface *interface,
        /* register all of the individual ports with the driver core */
        for (i = 0; i < num_ports; ++i) {
                port = serial->port[i];
-               port->dev.parent = &serial->dev->dev;
+               port->dev.parent = &interface->dev;
                port->dev.driver = NULL;
                port->dev.bus = &usb_serial_bus_type;
                port->dev.release = &port_release;