for (i = 0; i < num_urbs; i++) {
                retval = usb_submit_urb(ttusbir->urb[i], GFP_KERNEL);
                if (retval) {
-                       err("%s: usb_submit_urb failed on urb %d",
-                           __func__, i);
+                       dev_err(&ttusbir->interf->dev,
+                               "%s: usb_submit_urb failed on urb %d\n",
+                               __func__, i);
                        return retval;
                }
        }
        if (ttusbir->alt_setting != -1)
                DPRINTK("alt setting: %d\n", ttusbir->alt_setting);
        else {
-               err("Could not find alternate setting\n");
+               dev_err(&intf->dev, "Could not find alternate setting\n");
                kfree(ttusbir);
                return -EINVAL;
        }
 
        /* Register as a LIRC driver */
        if (lirc_buffer_init(&ttusbir->rbuf, sizeof(int), 256) < 0) {
-               err("Could not get memory for LIRC data buffer\n");
+               dev_err(&intf->dev, "Could not get memory for LIRC data buffer\n");
                usb_set_intfdata(intf, NULL);
                kfree(ttusbir);
                return -ENOMEM;
        ttusbir->driver.features = LIRC_CAN_REC_MODE2;
        ttusbir->minor = lirc_register_driver(&ttusbir->driver);
        if (ttusbir->minor < 0) {
-               err("Error registering as LIRC driver\n");
+               dev_err(&intf->dev, "Error registering as LIRC driver\n");
                usb_set_intfdata(intf, NULL);
                lirc_buffer_free(&ttusbir->rbuf);
                kfree(ttusbir);
        for (i = 0; i < num_urbs; i++) {
                ttusbir->urb[i] = usb_alloc_urb(8, GFP_KERNEL);
                if (!ttusbir->urb[i]) {
-                       err("Could not allocate memory for the URB\n");
+                       dev_err(&intf->dev, "Could not allocate memory for the URB\n");
                        for (j = i - 1; j >= 0; j--)
                                kfree(ttusbir->urb[j]);
                        lirc_buffer_free(&ttusbir->rbuf);