]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: cec: drop senseless message
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Jul 2017 12:30:37 +0000 (09:30 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 18 Jul 2017 16:00:26 +0000 (13:00 -0300)
Especially the '0.10' version number is confusing since CEC_ADAP_G_CAPS
returns a completely different version number.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-core.c

index 2e5765344d07095f8c3d7e53393c0d87e96463d1..52f085ba104a2eb4c0ab95649141ce03e1334387 100644 (file)
@@ -388,11 +388,8 @@ EXPORT_SYMBOL_GPL(cec_delete_adapter);
  */
 static int __init cec_devnode_init(void)
 {
-       int ret;
+       int ret = alloc_chrdev_region(&cec_dev_t, 0, CEC_NUM_DEVICES, CEC_NAME);
 
-       pr_info("Linux cec interface: v0.10\n");
-       ret = alloc_chrdev_region(&cec_dev_t, 0, CEC_NUM_DEVICES,
-                                 CEC_NAME);
        if (ret < 0) {
                pr_warn("cec: unable to allocate major\n");
                return ret;