Commit 8bfd4b29 authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

V4L/DVB (12944): SAA7164: Minor i2c assignment cleanup

SAA7164: Minor i2c assignment cleanup
Signed-off-by: default avatarSteven Toth <stoth@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 1f8c40b4
...@@ -521,10 +521,9 @@ int saa7164_dvb_register(struct saa7164_tsport *port) ...@@ -521,10 +521,9 @@ int saa7164_dvb_register(struct saa7164_tsport *port)
case SAA7164_BOARD_HAUPPAUGE_HVR2200: case SAA7164_BOARD_HAUPPAUGE_HVR2200:
case SAA7164_BOARD_HAUPPAUGE_HVR2200_2: case SAA7164_BOARD_HAUPPAUGE_HVR2200_2:
case SAA7164_BOARD_HAUPPAUGE_HVR2200_3: case SAA7164_BOARD_HAUPPAUGE_HVR2200_3:
i2c_bus = &dev->i2c_bus[port->nr + 1];
switch (port->nr) { switch (port->nr) {
case 0: case 0:
i2c_bus = &dev->i2c_bus[1];
port->dvb.frontend = dvb_attach(tda10048_attach, port->dvb.frontend = dvb_attach(tda10048_attach,
&hauppauge_hvr2200_1_config, &hauppauge_hvr2200_1_config,
&i2c_bus->i2c_adap); &i2c_bus->i2c_adap);
...@@ -538,8 +537,6 @@ int saa7164_dvb_register(struct saa7164_tsport *port) ...@@ -538,8 +537,6 @@ int saa7164_dvb_register(struct saa7164_tsport *port)
break; break;
case 1: case 1:
i2c_bus = &dev->i2c_bus[2];
port->dvb.frontend = dvb_attach(tda10048_attach, port->dvb.frontend = dvb_attach(tda10048_attach,
&hauppauge_hvr2200_2_config, &hauppauge_hvr2200_2_config,
&i2c_bus->i2c_adap); &i2c_bus->i2c_adap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment