aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_edgeport.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/io_edgeport.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/io_edgeport.c')
-rw-r--r--drivers/usb/serial/io_edgeport.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c
index eb95efdfbe8b..e85c8c0d1ad9 100644
--- a/drivers/usb/serial/io_edgeport.c
+++ b/drivers/usb/serial/io_edgeport.c
@@ -3109,13 +3109,13 @@ static int edge_startup(struct usb_serial *serial)
3109 edge_serial->interrupt_read_urb = 3109 edge_serial->interrupt_read_urb =
3110 usb_alloc_urb(0, GFP_KERNEL); 3110 usb_alloc_urb(0, GFP_KERNEL);
3111 if (!edge_serial->interrupt_read_urb) { 3111 if (!edge_serial->interrupt_read_urb) {
3112 err("out of memory"); 3112 dev_err(&dev->dev, "out of memory\n");
3113 return -ENOMEM; 3113 return -ENOMEM;
3114 } 3114 }
3115 edge_serial->interrupt_in_buffer = 3115 edge_serial->interrupt_in_buffer =
3116 kmalloc(buffer_size, GFP_KERNEL); 3116 kmalloc(buffer_size, GFP_KERNEL);
3117 if (!edge_serial->interrupt_in_buffer) { 3117 if (!edge_serial->interrupt_in_buffer) {
3118 err("out of memory"); 3118 dev_err(&dev->dev, "out of memory\n");
3119 usb_free_urb(edge_serial->interrupt_read_urb); 3119 usb_free_urb(edge_serial->interrupt_read_urb);
3120 return -ENOMEM; 3120 return -ENOMEM;
3121 } 3121 }
@@ -3146,13 +3146,13 @@ static int edge_startup(struct usb_serial *serial)
3146 edge_serial->read_urb = 3146 edge_serial->read_urb =
3147 usb_alloc_urb(0, GFP_KERNEL); 3147 usb_alloc_urb(0, GFP_KERNEL);
3148 if (!edge_serial->read_urb) { 3148 if (!edge_serial->read_urb) {
3149 err("out of memory"); 3149 dev_err(&dev->dev, "out of memory\n");
3150 return -ENOMEM; 3150 return -ENOMEM;
3151 } 3151 }
3152 edge_serial->bulk_in_buffer = 3152 edge_serial->bulk_in_buffer =
3153 kmalloc(buffer_size, GFP_KERNEL); 3153 kmalloc(buffer_size, GFP_KERNEL);
3154 if (!edge_serial->bulk_in_buffer) { 3154 if (!edge_serial->bulk_in_buffer) {
3155 err("out of memory"); 3155 dev_err(&dev->dev, "out of memory\n");
3156 usb_free_urb(edge_serial->read_urb); 3156 usb_free_urb(edge_serial->read_urb);
3157 return -ENOMEM; 3157 return -ENOMEM;
3158 } 3158 }
@@ -3181,7 +3181,8 @@ static int edge_startup(struct usb_serial *serial)
3181 } 3181 }
3182 3182
3183 if (!interrupt_in_found || !bulk_in_found || !bulk_out_found) { 3183 if (!interrupt_in_found || !bulk_in_found || !bulk_out_found) {
3184 err("Error - the proper endpoints were not found!"); 3184 dev_err(&dev->dev, "Error - the proper endpoints "
3185 "were not found!\n");
3185 return -ENODEV; 3186 return -ENODEV;
3186 } 3187 }
3187 3188
@@ -3190,8 +3191,9 @@ static int edge_startup(struct usb_serial *serial)
3190 response = usb_submit_urb(edge_serial->interrupt_read_urb, 3191 response = usb_submit_urb(edge_serial->interrupt_read_urb,
3191 GFP_KERNEL); 3192 GFP_KERNEL);
3192 if (response) 3193 if (response)
3193 err("%s - Error %d submitting control urb", 3194 dev_err(&dev->dev,
3194 __func__, response); 3195 "%s - Error %d submitting control urb\n",
3196 __func__, response);
3195 } 3197 }
3196 return response; 3198 return response;
3197} 3199}