Skip to contentSkip to conversation

fix tuner.c and tda9887.c in 2.5.69-mm6

PATCH New Shane Shrybman 1 participant 1 message May 17, 2003 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix tuner.c and tda9887.c in 2.5.69-mm6

Hi,

Attached are two patches that make bttv compile and work in 2.5.69-mm6. I think this broke in -mm4. The patches are probably not correct, but they work for me.

Regards,

Shane

drivers/media/video/tda9887.c renamed from drivers/media/video/tda9887.c.orig +5 -3
@@ -439,9 +439,11 @@
 };
 static struct i2c_client client_template =
 {
-        .dev.name  = "tda9887",
-	.flags     = I2C_CLIENT_ALLOW_USE,
-        .driver    = &driver,
+	.flags  = I2C_CLIENT_ALLOW_USE,
+        .driver = &driver,
+        .dev	= {
+		.name	= "tda9887",
+	},
 };
 
 static int tda9887_init_module(void)
drivers/media/video/tuner.c renamed from drivers/media/video/tuner.c.orig +5 -3
@@ -960,9 +960,11 @@
 };
 static struct i2c_client client_template =
 {
-        .dev.name   = "(tuner unset)",
-	.flags      = I2C_CLIENT_ALLOW_USE,
-        .driver     = &driver,
+	.flags  = I2C_CLIENT_ALLOW_USE,
+	.driver = &driver,
+	.dev  = {
+		.name   = "(tuner unset)",
+	},
 };
 
 static int tuner_init_module(void)