summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-08-28 20:43:25 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 20:58:58 +0200
commit13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff (patch)
tree539065e3ee004ad8aa4fb3bddc7a8d1f5d145c16 /drivers/usb/serial/usb-serial.c
parentUSB: fix __must_check warnings in drivers/usb/host/ (diff)
downloadlinux-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.c5
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);