]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/media/easycap/easycap_main.c
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[karo-tx-linux.git] / drivers / staging / media / easycap / easycap_main.c
index aed953751a906c12cb057d823b755542e801e3f0..a1c45e4dcdce37e0b1ac885fca0e8750591add80 100644 (file)
@@ -3467,7 +3467,6 @@ static int easycap_register_video(struct easycap *peasycap)
 
        if (0 != (video_register_device(&(peasycap->video_device),
                                        VFL_TYPE_GRABBER, -1))) {
-               err("Not able to register with videodev");
                videodev_release(&(peasycap->video_device));
                return -ENODEV;
        }
@@ -3855,8 +3854,11 @@ static int easycap_usb_probe(struct usb_interface *intf,
                        peasycap->v4l2_device.name);
 
                rc = easycap_register_video(peasycap);
-               if (rc < 0)
+               if (rc < 0) {
+                       dev_err(&intf->dev,
+                               "Not able to register with videodev\n");
                        return -ENODEV;
+               }
                break;
        }
        /* 1: Audio control */
@@ -3996,7 +3998,8 @@ static int easycap_usb_probe(struct usb_interface *intf,
 
                rc = easycap_alsa_probe(peasycap);
                if (rc) {
-                       err("easycap_alsa_probe() rc = %i\n", rc);
+                       dev_err(&intf->dev, "easycap_alsa_probe() rc = %i\n",
+                               rc);
                        return -ENODEV;
                }