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 7/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 ppc arch.

--

 sound/ppc/keywest.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

Index: linux-2.6-mm/sound/ppc/keywest.c =================================--- linux-2.6-mm.orig/sound/ppc/keywest.c +++ linux-2.6-mm/sound/ppc/keywest.c
@@ -41,7 +41,10 @@
static int keywest_detach_client(struct i2c_client *client);

struct i2c_driver keywest_driver = {
- .name = "PMac Keywest Audio",
+ .driver = {
+ .owner = THIS_MODULE,
+ .name = "PMac Keywest Audio",
+ },
.id = I2C_DRIVERID_KEYWEST,
.flags = I2C_DF_NOTIFY, .attach_adapter = &keywest_attach_adapter,

--