Commit 6586bcd7 authored by Laurent Riffard's avatar Laurent Riffard Committed by Greg Kroah-Hartman

[PATCH] Owner field additions to many i2c drivers, 4 of 5

This patch updates the .owner field for the i2c core struct xxxx_driver
variables.
Signed-off-by: default avatarLaurent Riffard <laurent.riffard@free.fr>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e78f857c
...@@ -85,6 +85,7 @@ void i2c_adapter_dev_release(struct device *dev) ...@@ -85,6 +85,7 @@ void i2c_adapter_dev_release(struct device *dev)
} }
struct device_driver i2c_adapter_driver = { struct device_driver i2c_adapter_driver = {
.owner = THIS_MODULE,
.name = "i2c_adapter", .name = "i2c_adapter",
.bus = &i2c_bus_type, .bus = &i2c_bus_type,
.probe = i2c_device_probe, .probe = i2c_device_probe,
...@@ -98,6 +99,7 @@ static void i2c_adapter_class_dev_release(struct class_device *dev) ...@@ -98,6 +99,7 @@ static void i2c_adapter_class_dev_release(struct class_device *dev)
} }
struct class i2c_adapter_class = { struct class i2c_adapter_class = {
.owner = THIS_MODULE,
.name = "i2c-adapter", .name = "i2c-adapter",
.release = &i2c_adapter_class_dev_release, .release = &i2c_adapter_class_dev_release,
}; };
...@@ -291,6 +293,7 @@ int i2c_add_driver(struct i2c_driver *driver) ...@@ -291,6 +293,7 @@ int i2c_add_driver(struct i2c_driver *driver)
down(&core_lists); down(&core_lists);
/* add the driver to the list of i2c drivers in the driver core */ /* 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.name = driver->name;
driver->driver.bus = &i2c_bus_type; driver->driver.bus = &i2c_bus_type;
driver->driver.probe = i2c_device_probe; driver->driver.probe = i2c_device_probe;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment