i2c: update .owner field for i2c
PATCH 4/5 i2c: update .owner field for i2c
This patch updates the .owner field for the i2c core struct xxxx_driver variables.
---
Index: linux-2.6-mm/drivers/i2c/i2c-core.c
=================================--- linux-2.6-mm.orig/drivers/i2c/i2c-core.c 2005-09-08 16:47:36.789310500 +0200
+++ linux-2.6-mm/drivers/i2c/i2c-core.c 2005-09-10 10:49:14.855249500 +0200
@@ -85,6 +85,7 @@
}
struct device_driver i2c_adapter_driver = {
+ .owner = THIS_MODULE,
.name = "i2c_adapter",
.bus = &i2c_bus_type,
.probe = i2c_device_probe,
@@ -98,6 +99,7 @@
}
struct class i2c_adapter_class = {
+ .owner = THIS_MODULE,
.name = "i2c-adapter",
.release = &i2c_adapter_class_dev_release,
};
@@ -291,6 +293,7 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050930/38e8947b/signature-0001.bin