summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index c2ff00fc7..583f59a81 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -1858,26 +1858,10 @@ static void frontend_init(struct av7110 *av7110)
break;
case 0x000A: { // Hauppauge/TT Nexus-CA rev1.X
- u8 b = 0x00;
- u8 revbuf[4];
- int revision;
- struct i2c_msg msg[] = { { .addr = 0x50,.flags = 0,.buf = &b,.len = 1 },
- { .addr = 0x50,.flags = I2C_M_RD,.buf = revbuf,.len = sizeof(revbuf)} };
-
- // retrieve board revision
- if (i2c_transfer(&av7110->i2c_adap, msg, 2) != 2)
- break;
- printk("revbuf[0] = 0x%x\n", revbuf[0]);
- printk("revbuf[1] = 0x%x\n", revbuf[1]);
- printk("revbuf[2] = 0x%x\n", revbuf[2]);
- printk("revbuf[3] = 0x%x\n", revbuf[3]);
- revision = revbuf[0] | (revbuf[1] << 8);
- av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap, (revision < 10) ? 0x64 : 0x7b);
+ av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap, 0x7b);
if (av7110->fe)
break;
- break;
- }
}
}