diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-10-17 16:54:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 17:02:11 -0400 |
commit | 6586bcd7b2bbe255110b2db772da4415c7865a2a (patch) | |
tree | 0f5b10ccc7656fef1817c8fb7489aff51389de54 /drivers | |
parent | e78f857cc5299c3f6b3d046084696ef205948837 (diff) |
[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: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/i2c-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 15354176ff63..0040981b6698 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -85,6 +85,7 @@ void i2c_adapter_dev_release(struct device *dev) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | struct device_driver i2c_adapter_driver = { | 87 | struct device_driver i2c_adapter_driver = { |
88 | .owner = THIS_MODULE, | ||
88 | .name = "i2c_adapter", | 89 | .name = "i2c_adapter", |
89 | .bus = &i2c_bus_type, | 90 | .bus = &i2c_bus_type, |
90 | .probe = i2c_device_probe, | 91 | .probe = i2c_device_probe, |
@@ -98,6 +99,7 @@ static void i2c_adapter_class_dev_release(struct class_device *dev) | |||
98 | } | 99 | } |
99 | 100 | ||
100 | struct class i2c_adapter_class = { | 101 | struct class i2c_adapter_class = { |
102 | .owner = THIS_MODULE, | ||
101 | .name = "i2c-adapter", | 103 | .name = "i2c-adapter", |
102 | .release = &i2c_adapter_class_dev_release, | 104 | .release = &i2c_adapter_class_dev_release, |
103 | }; | 105 | }; |
@@ -291,6 +293,7 @@ int i2c_add_driver(struct i2c_driver *driver) | |||
291 | down(&core_lists); | 293 | down(&core_lists); |
292 | 294 | ||
293 | /* add the driver to the list of i2c drivers in the driver core */ | 295 | /* add the driver to the list of i2c drivers in the driver core */ |
296 | driver->driver.owner = driver->owner; | ||
294 | driver->driver.name = driver->name; | 297 | driver->driver.name = driver->name; |
295 | driver->driver.bus = &i2c_bus_type; | 298 | driver->driver.bus = &i2c_bus_type; |
296 | driver->driver.probe = i2c_device_probe; | 299 | driver->driver.probe = i2c_device_probe; |