Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b48716d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

[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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Cc: Jean Delvare <khali@linux-fr.org>
parent de59cf9e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -125,7 +125,6 @@ static int max7310_detach_client(struct i2c_client *client)

static struct i2c_driver max7310_i2c_driver = {
	.driver = {
		.owner	= THIS_MODULE,
		.name	= "akita-max7310",
	},
	.id		= I2C_DRIVERID_AKITAIOEXP,
+0 −1
Original line number Diff line number Diff line
@@ -258,7 +258,6 @@ pcf8583_command(struct i2c_client *client, unsigned int cmd, void *arg)

static struct i2c_driver pcf8583_driver = {
	.driver = {
		.owner	= THIS_MODULE,
		.name	= "PCF8583",
	},
	.id		= I2C_DRIVERID_PCF8583,
+0 −1
Original line number Diff line number Diff line
@@ -127,7 +127,6 @@ static int read_only;
/* This is the driver that will be inserted */
static struct i2c_driver adm1021_driver = {
	.driver = {
		.owner	= THIS_MODULE,
		.name	= "adm1021",
	},
	.id		= I2C_DRIVERID_ADM1021,
+0 −1
Original line number Diff line number Diff line
@@ -119,7 +119,6 @@ static struct adm1025_data *adm1025_update_device(struct device *dev);

static struct i2c_driver adm1025_driver = {
	.driver = {
		.owner	= THIS_MODULE,
		.name	= "adm1025",
	},
	.id		= I2C_DRIVERID_ADM1025,
+0 −1
Original line number Diff line number Diff line
@@ -309,7 +309,6 @@ static void adm1026_init_client(struct i2c_client *client);

static struct i2c_driver adm1026_driver = {
	.driver = {
		.owner	= THIS_MODULE,
		.name	= "adm1026",
	},
	.attach_adapter = adm1026_attach_adapter,
Loading