* [lm-sensors] [PATCH 2.6-mm 4/5] i2c: update .owner field for i2c
@ 2005-09-30 16:52 Laurent Riffard
0 siblings, 0 replies; only message in thread
From: Laurent Riffard @ 2005-09-30 16:52 UTC (permalink / raw)
To: lm-sensors
This patch updates the .owner field for the i2c core struct xxxx_driver
variables.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-30 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 16:52 [lm-sensors] [PATCH 2.6-mm 4/5] i2c: update .owner field for i2c Laurent Riffard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.