[lm-sensors] [PATCH 17/25] i2c: Drop i2c_driver.{owner, name}, 8 of 11
Jean Delvare
khali at linux-fr.org
Sat Nov 26 20:51:06 CET 2005
From: Laurent Riffard <laurent.riffard at free.fr>
Content-Disposition: inline; filename=i2c-drop-driver-owner-and-name-08-acorn.patch
We should use the i2c_driver.driver's .name and .owner fields
instead of the i2c_driver's ones.
This patch updates the drivers for acorn arch.
Signed-off-by: Laurent Riffard <laurent.riffard at free.fr>
Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
drivers/acorn/char/pcf8583.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- linux-2.6.15-rc1.orig/drivers/acorn/char/pcf8583.c 2005-11-13 10:51:02.000000000 +0100
+++ linux-2.6.15-rc1/drivers/acorn/char/pcf8583.c 2005-11-13 12:26:38.000000000 +0100
@@ -257,7 +257,10 @@
}
static struct i2c_driver pcf8583_driver = {
- .name = "PCF8583",
+ .driver = {
+ .owner = THIS_MODULE,
+ .name = "PCF8583",
+ },
.id = I2C_DRIVERID_PCF8583,
.attach_adapter = pcf8583_probe,
.detach_client = pcf8583_detach,
--
Jean Delvare
More information about the lm-sensors
mailing list