summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-26 12:41:03 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 05:11:48 -0200
commit9634614f35ec17a4af8660c025122b477dad7d0b (patch)
treecc05068fbb0cbfff79b99636a3f89b3549770c77 /drivers/media/usb/em28xx/em28xx-video.c
parent01c2819330b1e0ec6b53dcfac76ad75ff2c8ba4f (diff)
downloadlinux-9634614f35ec17a4af8660c025122b477dad7d0b.tar.gz
linux-9634614f35ec17a4af8660c025122b477dad7d0b.tar.xz
[media] em28xx: improve extension information messages
Add a message with consistent prints before and after each extension initialization, and provide a better text for module load. While here, add a missing sanity check for extension finish code at em28xx-v4l extension. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/usb/em28xx/em28xx-video.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index 7d11a16e72b5..ada133cf8e43 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -2216,8 +2216,7 @@ static int em28xx_v4l2_init(struct em28xx *dev)
return 0;
}
- printk(KERN_INFO "%s: v4l2 driver version %s\n",
- dev->name, EM28XX_VERSION);
+ em28xx_info("Registering V4L2 extension\n");
mutex_lock(&dev->lock);
@@ -2499,6 +2498,8 @@ static int em28xx_v4l2_init(struct em28xx *dev)
/* initialize videobuf2 stuff */
em28xx_vb2_setup(dev);
+ em28xx_info("V4L2 extension successfully initialized\n");
+
mutex_unlock(&dev->lock);
return 0;