Skip to contentSkip to conversation

I2C: remove i2c_driver's .owner and .name

PATCH In review Laurent riffard 1 participant 1 message Oct 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 8/9 I2C: remove i2c_driver's .owner and .name

We should use the i2c_driver.driver's .name and .owner fields instead of the i2c_drivers's ones.

This patch updates the drivers for acorn arch.

--

 drivers/acorn/char/pcf8583.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

Index: linux-2.6-mm/drivers/acorn/char/pcf8583.c =================================--- linux-2.6-mm.orig/drivers/acorn/char/pcf8583.c +++ linux-2.6-mm/drivers/acorn/char/pcf8583.c
@@ -221,7 +221,10 @@
}

static struct i2c_driver pcf8583_driver = {
- .name = "PCF8583",
+ .driver = {
+ .owner = THIS_MODULE,
+ .name = "PCF8583",
+ },
.id = I2C_DRIVERID_PCF8583,
.flags = I2C_DF_NOTIFY,
.attach_adapter = pcf8583_probe,

--