aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/idmouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/misc/idmouse.c')
-rw-r--r--drivers/usb/misc/idmouse.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c
index 0dee24698504..ce978384fda1 100644
--- a/drivers/usb/misc/idmouse.c
+++ b/drivers/usb/misc/idmouse.c
@@ -200,7 +200,8 @@ reset:
200 return -EAGAIN; 200 return -EAGAIN;
201 201
202 /* should be IMGSIZE == 65040 */ 202 /* should be IMGSIZE == 65040 */
203 dbg("read %d bytes fingerprint data", bytes_read); 203 dev_dbg(&dev->interface->dev, "read %d bytes fingerprint data\n",
204 bytes_read);
204 return result; 205 return result;
205} 206}
206 207
@@ -366,14 +367,14 @@ static int idmouse_probe(struct usb_interface *interface,
366 kmalloc(IMGSIZE + dev->bulk_in_size, GFP_KERNEL); 367 kmalloc(IMGSIZE + dev->bulk_in_size, GFP_KERNEL);
367 368
368 if (!dev->bulk_in_buffer) { 369 if (!dev->bulk_in_buffer) {
369 err("Unable to allocate input buffer."); 370 dev_err(&interface->dev, "Unable to allocate input buffer.\n");
370 idmouse_delete(dev); 371 idmouse_delete(dev);
371 return -ENOMEM; 372 return -ENOMEM;
372 } 373 }
373 } 374 }
374 375
375 if (!(dev->bulk_in_endpointAddr)) { 376 if (!(dev->bulk_in_endpointAddr)) {
376 err("Unable to find bulk-in endpoint."); 377 dev_err(&interface->dev, "Unable to find bulk-in endpoint.\n");
377 idmouse_delete(dev); 378 idmouse_delete(dev);
378 return -ENODEV; 379 return -ENODEV;
379 } 380 }
@@ -385,7 +386,7 @@ static int idmouse_probe(struct usb_interface *interface,
385 result = usb_register_dev(interface, &idmouse_class); 386 result = usb_register_dev(interface, &idmouse_class);
386 if (result) { 387 if (result) {
387 /* something prevented us from registering this device */ 388 /* something prevented us from registering this device */
388 err("Unble to allocate minor number."); 389 dev_err(&interface->dev, "Unble to allocate minor number.\n");
389 usb_set_intfdata(interface, NULL); 390 usb_set_intfdata(interface, NULL);
390 idmouse_delete(dev); 391 idmouse_delete(dev);
391 return result; 392 return result;