lkml.org 
[lkml]   [2003]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] USB Fixes for 2.6.0-test11
    From
    Date
    ChangeSet 1.1516, 2003/12/08 11:10:51-08:00, greg@kroah.com

    [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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:59    [W:0.019 / U:0.840 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site