Skip to content

Commit

Permalink
[PATCH] Owner field additions to many i2c drivers, 4 of 5
Browse files Browse the repository at this point in the history
This patch updates the .owner field for the i2c core struct xxxx_driver
variables.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Laurent Riffard authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent e78f857 commit 6586bcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ void i2c_adapter_dev_release(struct device *dev)
}

struct device_driver i2c_adapter_driver = {
.owner = THIS_MODULE,
.name = "i2c_adapter",
.bus = &i2c_bus_type,
.probe = i2c_device_probe,
Expand All @@ -98,6 +99,7 @@ static void i2c_adapter_class_dev_release(struct class_device *dev)
}

struct class i2c_adapter_class = {
.owner = THIS_MODULE,
.name = "i2c-adapter",
.release = &i2c_adapter_class_dev_release,
};
Expand Down Expand Up @@ -291,6 +293,7 @@ int i2c_add_driver(struct i2c_driver *driver)
down(&core_lists);

/* add the driver to the list of i2c drivers in the driver core */
driver->driver.owner = driver->owner;
driver->driver.name = driver->name;
driver->driver.bus = &i2c_bus_type;
driver->driver.probe = i2c_device_probe;
Expand Down

0 comments on commit 6586bcd

Please sign in to comment.