aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-08-20 19:56:34 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-17 17:41:10 -0400
commit194343d9364ea07c9f27c4505380a15a905e8a24 (patch)
tree9c3336daa16fb74f8c669357a7850c2c1452ad8e /drivers/usb/serial/usb-serial.c
parentb887265c165f94917d0f565b1883a6e7b3c8388c (diff)
USB: remove use of err() in drivers/usb/serial
err() is going away, so switch to dev_err() or printk() if it's really needed. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r--drivers/usb/serial/usb-serial.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 92ba4f7361e4..8be3f39891c7 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -1121,7 +1121,8 @@ static int __init usb_serial_init(void)
1121 1121
1122 result = bus_register(&usb_serial_bus_type); 1122 result = bus_register(&usb_serial_bus_type);
1123 if (result) { 1123 if (result) {
1124 err("%s - registering bus driver failed", __func__); 1124 printk(KERN_ERR "usb-serial: %s - registering bus driver "
1125 "failed\n", __func__);
1125 goto exit_bus; 1126 goto exit_bus;
1126 } 1127 }
1127 1128
@@ -1142,21 +1143,24 @@ static int __init usb_serial_init(void)
1142 tty_set_operations(usb_serial_tty_driver, &serial_ops); 1143 tty_set_operations(usb_serial_tty_driver, &serial_ops);
1143 result = tty_register_driver(usb_serial_tty_driver); 1144 result = tty_register_driver(usb_serial_tty_driver);
1144 if (result) { 1145 if (result) {
1145 err("%s - tty_register_driver failed", __func__); 1146 printk(KERN_ERR "usb-serial: %s - tty_register_driver failed\n",
1147 __func__);
1146 goto exit_reg_driver; 1148 goto exit_reg_driver;
1147 } 1149 }
1148 1150
1149 /* register the USB driver */ 1151 /* register the USB driver */
1150 result = usb_register(&usb_serial_driver); 1152 result = usb_register(&usb_serial_driver);
1151 if (result < 0) { 1153 if (result < 0) {
1152 err("%s - usb_register failed", __func__); 1154 printk(KERN_ERR "usb-serial: %s - usb_register failed\n",
1155 __func__);
1153 goto exit_tty; 1156 goto exit_tty;
1154 } 1157 }
1155 1158
1156 /* register the generic driver, if we should */ 1159 /* register the generic driver, if we should */
1157 result = usb_serial_generic_register(debug); 1160 result = usb_serial_generic_register(debug);
1158 if (result < 0) { 1161 if (result < 0) {
1159 err("%s - registering generic driver failed", __func__); 1162 printk(KERN_ERR "usb-serial: %s - registering generic "
1163 "driver failed\n", __func__);
1160 goto exit_generic; 1164 goto exit_generic;
1161 } 1165 }
1162 1166
@@ -1174,7 +1178,8 @@ exit_reg_driver:
1174 bus_unregister(&usb_serial_bus_type); 1178 bus_unregister(&usb_serial_bus_type);
1175 1179
1176exit_bus: 1180exit_bus:
1177 err("%s - returning with error %d", __func__, result); 1181 printk(KERN_ERR "usb-serial: %s - returning with error %d\n",
1182 __func__, result);
1178 put_tty_driver(usb_serial_tty_driver); 1183 put_tty_driver(usb_serial_tty_driver);
1179 return result; 1184 return result;
1180} 1185}
@@ -1233,8 +1238,8 @@ int usb_serial_register(struct usb_serial_driver *driver)
1233 1238
1234 retval = usb_serial_bus_register(driver); 1239 retval = usb_serial_bus_register(driver);
1235 if (retval) { 1240 if (retval) {
1236 err("problem %d when registering driver %s", 1241 printk(KERN_ERR "usb-serial: problem %d when registering "
1237 retval, driver->description); 1242 "driver %s\n", retval, driver->description);
1238 list_del(&driver->driver_list); 1243 list_del(&driver->driver_list);
1239 } else 1244 } else
1240 printk(KERN_INFO "USB Serial support registered for %s\n", 1245 printk(KERN_INFO "USB Serial support registered for %s\n",