[PATCH] I2C: Remove .owner setting from i2c_driver as it's no longer needed

Now that i2c_add_driver() doesn't need the module owner to be set by
hand, we can delete it from the drivers.  This patch catches all of the
drivers that I found in the current tree (if a driver sets the .owner by
hand, it's not a problem, just not needed.)

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
Greg Kroah-Hartman
2005-12-06 15:33:15 -08:00
parent de59cf9ed4
commit 2b48716d1d
95 changed files with 0 additions and 98 deletions

View File

@@ -53,7 +53,6 @@ static int ds1337_command(struct i2c_client *client, unsigned int cmd,
*/
static struct i2c_driver ds1337_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "ds1337",
},
.attach_adapter = ds1337_attach_adapter,

View File

@@ -233,7 +233,6 @@ static int ds1374_detach(struct i2c_client *client)
static struct i2c_driver ds1374_driver = {
.driver = {
.owner = THIS_MODULE,
.name = DS1374_DRV_NAME,
},
.id = I2C_DRIVERID_DS1374,

View File

@@ -69,7 +69,6 @@ static int eeprom_detach_client(struct i2c_client *client);
/* This is the driver that will be inserted */
static struct i2c_driver eeprom_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "eeprom",
},
.id = I2C_DRIVERID_EEPROM,

View File

@@ -1633,7 +1633,6 @@ static int isp1301_scan_bus(struct i2c_adapter *bus)
static struct i2c_driver isp1301_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "isp1301_omap",
},
.id = 1301, /* FIXME "official", i2c-ids.h */

View File

@@ -212,7 +212,6 @@ m41t00_detach(struct i2c_client *client)
static struct i2c_driver m41t00_driver = {
.driver = {
.owner = THIS_MODULE,
.name = M41T00_DRV_NAME,
},
.id = I2C_DRIVERID_STM41T00,

View File

@@ -68,7 +68,6 @@ static int max6875_detach_client(struct i2c_client *client);
/* This is the driver that will be inserted */
static struct i2c_driver max6875_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "max6875",
},
.attach_adapter = max6875_attach_adapter,

View File

@@ -39,7 +39,6 @@ static int pca9539_detach_client(struct i2c_client *client);
/* This is the driver that will be inserted */
static struct i2c_driver pca9539_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "pca9539",
},
.attach_adapter = pca9539_attach_adapter,

View File

@@ -66,7 +66,6 @@ static void pcf8574_init_client(struct i2c_client *client);
/* This is the driver that will be inserted */
static struct i2c_driver pcf8574_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "pcf8574",
},
.id = I2C_DRIVERID_PCF8574,

View File

@@ -89,7 +89,6 @@ static int pcf8591_read_channel(struct device *dev, int channel);
/* This is the driver that will be inserted */
static struct i2c_driver pcf8591_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "pcf8591",
},
.id = I2C_DRIVERID_PCF8591,

View File

@@ -359,7 +359,6 @@ rtc8564_command(struct i2c_client *client, unsigned int cmd, void *arg)
static struct i2c_driver rtc8564_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "RTC8564",
},
.id = I2C_DRIVERID_RTC8564,

View File

@@ -638,7 +638,6 @@ static int __init tps65010_scan_bus(struct i2c_adapter *bus)
static struct i2c_driver tps65010_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "tps65010",
},
.attach_adapter = tps65010_scan_bus,

View File

@@ -106,7 +106,6 @@ static int x1205_command(struct i2c_client *client, unsigned int cmd,
static struct i2c_driver x1205_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "x1205",
},
.attach_adapter = &x1205_attach,

View File

@@ -482,7 +482,6 @@ static int i2cdev_command(struct i2c_client *client, unsigned int cmd,
static struct i2c_driver i2cdev_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "dev_driver",
},
.id = I2C_DRIVERID_I2CDEV,