summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2009-08-29 13:33:06 -0400
committerSteven Toth <stoth@kernellabs.com>2009-08-29 13:33:06 -0400
commit85526767d709cf563347648fed556f6994cd1ffc (patch)
treeb7668e7583204b143fbb54a4404f635196e1d222 /linux/drivers/media
parent54cdc34529fe81c84b9b034152945d4d13907582 (diff)
downloadmediapointer-dvb-s2-85526767d709cf563347648fed556f6994cd1ffc.tar.gz
mediapointer-dvb-s2-85526767d709cf563347648fed556f6994cd1ffc.tar.bz2
SAA7164: Minor i2c assignment cleanup
From: Steven Toth <stoth@kernellabs.com> SAA7164: Minor i2c assignment cleanup Priority: normal Signed-off-by: Steven Toth <stoth@kernellabs.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/saa7164/saa7164-dvb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/video/saa7164/saa7164-dvb.c b/linux/drivers/media/video/saa7164/saa7164-dvb.c
index d850cf2a9..768f7938d 100644
--- a/linux/drivers/media/video/saa7164/saa7164-dvb.c
+++ b/linux/drivers/media/video/saa7164/saa7164-dvb.c
@@ -521,10 +521,9 @@ int saa7164_dvb_register(struct saa7164_tsport *port)
case SAA7164_BOARD_HAUPPAUGE_HVR2200:
case SAA7164_BOARD_HAUPPAUGE_HVR2200_2:
case SAA7164_BOARD_HAUPPAUGE_HVR2200_3:
+ i2c_bus = &dev->i2c_bus[port->nr + 1];
switch (port->nr) {
case 0:
- i2c_bus = &dev->i2c_bus[1];
-
port->dvb.frontend = dvb_attach(tda10048_attach,
&hauppauge_hvr2200_1_config,
&i2c_bus->i2c_adap);
@@ -538,8 +537,6 @@ int saa7164_dvb_register(struct saa7164_tsport *port)
break;
case 1:
- i2c_bus = &dev->i2c_bus[2];
-
port->dvb.frontend = dvb_attach(tda10048_attach,
&hauppauge_hvr2200_2_config,
&i2c_bus->i2c_adap);