[PATCH] i2c: Drop i2c_driver.{owner,name}, 9 of 11
authorLaurent Riffard <laurent.riffard@free.fr>
Sat, 26 Nov 2005 19:52:34 +0000 (20:52 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2006 06:16:24 +0000 (22:16 -0800)
We should use the i2c_driver.driver's .name and .owner fields
instead of the i2c_driver's ones.

This patch updates the matroxfb driver.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/matrox/matroxfb_maven.c

index 78994c5fe932434101b45e7847c326c2f4d6eb1b..f6fdb69af0b42dd8f38333515b2a30f8bed253a1 100644 (file)
@@ -1293,8 +1293,10 @@ static int maven_command(struct i2c_client* client, unsigned int cmd, void* arg)
 }
 
 static struct i2c_driver maven_driver={
-       .owner          = THIS_MODULE,
-       .name           = "maven",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "maven",
+       },
        .id             = I2C_DRIVERID_MGATVO,
        .attach_adapter = maven_attach_adapter,
        .detach_client  = maven_detach_client,