diff mbox

V4L/DVB: dibx000_common: Restore i2c algo pointer

Message ID 20101105113535.25d0e168@endymion.delvare (mailing list archive)
State Accepted
Headers show

Commit Message

Jean Delvare Nov. 5, 2010, 10:35 a.m. UTC
None
diff mbox

Patch

--- linux-2.6.37-rc1.orig/drivers/media/dvb/frontends/dibx000_common.c	2010-11-02 09:19:35.000000000 +0100
+++ linux-2.6.37-rc1/drivers/media/dvb/frontends/dibx000_common.c	2010-11-05 11:13:48.000000000 +0100
@@ -130,6 +130,7 @@  static int i2c_adapter_init(struct i2c_a
 			    struct dibx000_i2c_master *mst)
 {
 	strncpy(i2c_adap->name, name, sizeof(i2c_adap->name));
+	i2c_adap->algo = algo;
 	i2c_adap->algo_data = NULL;
 	i2c_set_adapdata(i2c_adap, mst);
 	if (i2c_add_adapter(i2c_adap) < 0)