From: laurent.riffard@free.fr (Laurent Riffard)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH 2.6-mm 4/5] i2c: update .owner field for i2c
Date: Fri, 30 Sep 2005 16:52:36 +0000 [thread overview]
Message-ID: <433D50EC.1070305@free.fr> (raw)
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
reply other threads:[~2005-09-30 16:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=433D50EC.1070305@free.fr \
--to=laurent.riffard@free.fr \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.