From: Dmitry Belimov <d.belimov@gmail.com>
Date: Wed, 23 Apr 2008 17:01:52 +0000 (-0300)
Subject: V4L/DVB (7675): tea5767 autodetection is not working on some saa7134 boards
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=548899c76e101bdf6228569d6ee6992e8c20da76;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git

V4L/DVB (7675): tea5767 autodetection is not working on some saa7134 boards

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---

diff --git a/drivers/media/video/tea5767.c b/drivers/media/video/tea5767.c
index 833f2768958d..f6e7d7ad8424 100644
--- a/drivers/media/video/tea5767.c
+++ b/drivers/media/video/tea5767.c
@@ -393,11 +393,6 @@ int tea5767_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr)
 		return EINVAL;
 	}
 
-	/* It seems that tea5767 returns 0xff after the 5th byte */
-	if ((buffer[5] != 0xff) || (buffer[6] != 0xff)) {
-		printk(KERN_WARNING "Returned more than 5 bytes. It is not a TEA5767\n");
-		return EINVAL;
-	}
 
 	return 0;
 }