diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-11-26 20:40:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 07:16:23 +0100 |
commit | a33ca23231a37e28d15da9546b1f3e83dc48284b (patch) | |
tree | 50c59c7dfbf77cb9297dd20d2aa1e3958f5f358d /drivers/macintosh/therm_adt746x.c | |
parent | [PATCH] i2c: Drop i2c_driver.{owner,name}, 3 of 11 (diff) | |
download | linux-a33ca23231a37e28d15da9546b1f3e83dc48284b.tar.xz linux-a33ca23231a37e28d15da9546b1f3e83dc48284b.zip |
[PATCH] i2c: Drop i2c_driver.{owner,name}, 4 of 11
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 macintosh.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/macintosh/therm_adt746x.c')
-rw-r--r-- | drivers/macintosh/therm_adt746x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index f62c16fab42b..8bb1d857e14d 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c @@ -171,8 +171,10 @@ detach_thermostat(struct i2c_adapter *adapter) } static struct i2c_driver thermostat_driver = { - .owner = THIS_MODULE, - .name = "therm_adt746x", + .driver = { + .owner = THIS_MODULE, + .name = "therm_adt746x", + }, .attach_adapter = attach_thermostat, .detach_adapter = detach_thermostat, }; |