[PATCH] USB Fixes for 2.6.0-test11

From: Greg KH
Date: Wed Dec 10 2003 - 20:58:34 EST


ChangeSet 1.1516, 2003/12/08 11:10:51-08:00, greg@xxxxxxxxx

[PATCH] USB: register usb-serial ports in the proper place in sysfs

They should be bound to the interface the driver is attached to, not
the device.


drivers/usb/serial/usb-serial.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
--- a/drivers/usb/serial/usb-serial.c Wed Dec 10 16:48:06 2003
+++ b/drivers/usb/serial/usb-serial.c Wed Dec 10 16:48:06 2003
@@ -1242,7 +1242,7 @@
/* 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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/