]> err.no Git - linux-2.6/commitdiff
[PATCH] i2c: Drop i2c_driver.{owner,name}, 8 of 11
authorLaurent Riffard <laurent.riffard@free.fr>
Sat, 26 Nov 2005 19:51:06 +0000 (20:51 +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 drivers for acorn arch.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acorn/char/pcf8583.c

index befc9469b4f2e3de5c3546004a0e641fc11f6dbc..5fc5940e637c9e3f0269db4bd9b30324c549af1a 100644 (file)
@@ -257,7 +257,10 @@ pcf8583_command(struct i2c_client *client, unsigned int cmd, void *arg)
 }
 
 static struct i2c_driver pcf8583_driver = {
-       .name           = "PCF8583",
+       .driver = {
+               .owner  = THIS_MODULE,
+               .name   = "PCF8583",
+       },
        .id             = I2C_DRIVERID_PCF8583,
        .attach_adapter = pcf8583_probe,
        .detach_client  = pcf8583_detach,