patch-2.4.23 linux-2.4.23/drivers/media/video/tda7432.c

Next file: linux-2.4.23/drivers/media/video/tda9875.c
Previous file: linux-2.4.23/drivers/media/video/saa7110.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/media/video/tda7432.c linux-2.4.23/drivers/media/video/tda7432.c
@@ -341,8 +341,13 @@
 
 static int tda7432_probe(struct i2c_adapter *adap)
 {
+#ifdef I2C_ADAP_CLASS_TV_ANALOG
+	if (adap->class & I2C_ADAP_CLASS_TV_ANALOG)
+		return i2c_probe(adap, &addr_data, tda7432_attach);
+#else
 	if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848))
 		return i2c_probe(adap, &addr_data, tda7432_attach);
+#endif
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)