]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] drivers/media/video/saa5249.c compile fix
authorAndrew Morton <akpm@digeo.com>
Wed, 12 Feb 2003 05:08:11 +0000 (21:08 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 12 Feb 2003 05:08:11 +0000 (21:08 -0800)
Patch from: Frank Davis <fdavis@si.rr.com>

The following addresses bugzilla bug # 340.

drivers/media/video/saa5249.c

index 897b3382d0d96cea6544fdbd6f432f9193a87dcf..a3fbb9e48ef39494178948a11b320fedefb9261a 100644 (file)
@@ -254,21 +254,19 @@ static int saa5249_command(struct i2c_client *device,
 
 static struct i2c_driver i2c_driver_videotext = 
 {
-       IF_NAME,                /* name */
-       I2C_DRIVERID_SAA5249, /* in i2c.h */
-       I2C_DF_NOTIFY,
-       saa5249_probe,
-       saa5249_detach,
-       saa5249_command
+       .owner          = THIS_MODULE,
+       .name           = IF_NAME,              /* name */
+       .id             = I2C_DRIVERID_SAA5249, /* in i2c.h */
+       .flags          = I2C_DF_NOTIFY,
+       .attach_adapter = saa5249_probe,
+       .detach_client  = saa5249_detach,
+       .command        = saa5249_command
 };
 
 static struct i2c_client client_template = {
-       "(unset)",
-       -1,
-       0,
-       0,
-       NULL,
-       &i2c_driver_videotext
+       .name           = "(unset)",
+       .id             = -1,
+       .driver         = &i2c_driver_videotext
 };
 
 /*