diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-08-28 20:43:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 20:58:58 +0200 |
commit | 13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff (patch) | |
tree | 539065e3ee004ad8aa4fb3bddc7a8d1f5d145c16 /drivers/usb/serial/usb-serial.c | |
parent | USB: fix __must_check warnings in drivers/usb/host/ (diff) | |
download | linux-13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff.tar.xz linux-13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff.zip |
USB: fix __must_check warnings in drivers/usb/serial/
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 1f21a9d4b700..03c619478a7c 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -932,7 +932,10 @@ int usb_serial_probe(struct usb_interface *interface, snprintf (&port->dev.bus_id[0], sizeof(port->dev.bus_id), "ttyUSB%d", port->number); dbg ("%s - registering %s", __FUNCTION__, port->dev.bus_id); - device_register (&port->dev); + retval = device_register(&port->dev); + if (retval) + dev_err(&port->dev, "Error registering port device, " + "continuing\n"); } usb_serial_console_init (debug, minor); |