At Sun, 15 Feb 2015 14:32:39 +0700, Johan Hovold wrote: > > On Thu, Feb 05, 2015 at 02:36:24PM +0100, Takashi Iwai wrote: > > No commit message? > > > Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> > > --- > > drivers/usb/serial/bus.c | 11 +++++++++-- > > 1 file changed, 9 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/usb/serial/bus.c b/drivers/usb/serial/bus.c > > index b730366d524f..4b34afc51535 100644 > > --- a/drivers/usb/serial/bus.c > > +++ b/drivers/usb/serial/bus.c > > @@ -80,8 +80,15 @@ static int usb_serial_device_probe(struct device *dev) > > } > > > > minor = port->minor; > > - tty_register_device_attr(usb_serial_tty_driver, minor, dev, NULL, > > - usb_serial_dev_groups); > > + dev = tty_register_device_attr(usb_serial_tty_driver, minor, dev, NULL, > > + usb_serial_dev_groups); > > Please add a second struct device *tdev for the tty device, rather than > reuse dev here. > > > + if (IS_ERR(dev)) { > > + retval = PTR_ERR(dev); > > + if (driver->port_remove) > > + driver->port_remove(port); > > + goto exit_with_autopm; > > + } > > + > > dev_info(&port->serial->dev->dev, > > "%s converter now attached to ttyUSB%d\n", > > driver->description, minor); > > Looks good otherwise. > > Can you resend this one separately after you drop patch 1/3? Make sure > you remove the port device attribute in the error path as well after you > rebase. If more change is needed, I leave this rather to you guys to work on :) thanks, Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html