diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-11-26 14:37:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:23 -0500 |
commit | cdaf79349c7d24e1d33acb6497849c9e956a33ea (patch) | |
tree | 48f22bb5f215953ac0e57385282fbc5042a03955 /drivers/hwmon/lm78.c | |
parent | a9718b0c1154dcbd955be6aaee47a314cde6a25a (diff) |
[PATCH] i2c: Drop i2c_driver.{owner,name}, 3 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 hwmon drivers.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hwmon/lm78.c')
-rw-r--r-- | drivers/hwmon/lm78.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 18448f83a6b0..3af5b06995e0 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -164,16 +164,20 @@ static void lm78_init_client(struct i2c_client *client); | |||
164 | 164 | ||
165 | 165 | ||
166 | static struct i2c_driver lm78_driver = { | 166 | static struct i2c_driver lm78_driver = { |
167 | .owner = THIS_MODULE, | 167 | .driver = { |
168 | .name = "lm78", | 168 | .owner = THIS_MODULE, |
169 | .name = "lm78", | ||
170 | }, | ||
169 | .id = I2C_DRIVERID_LM78, | 171 | .id = I2C_DRIVERID_LM78, |
170 | .attach_adapter = lm78_attach_adapter, | 172 | .attach_adapter = lm78_attach_adapter, |
171 | .detach_client = lm78_detach_client, | 173 | .detach_client = lm78_detach_client, |
172 | }; | 174 | }; |
173 | 175 | ||
174 | static struct i2c_driver lm78_isa_driver = { | 176 | static struct i2c_driver lm78_isa_driver = { |
175 | .owner = THIS_MODULE, | 177 | .driver = { |
176 | .name = "lm78-isa", | 178 | .owner = THIS_MODULE, |
179 | .name = "lm78-isa", | ||
180 | }, | ||
177 | .attach_adapter = lm78_isa_attach_adapter, | 181 | .attach_adapter = lm78_isa_attach_adapter, |
178 | .detach_client = lm78_detach_client, | 182 | .detach_client = lm78_detach_client, |
179 | }; | 183 | }; |
@@ -496,7 +500,7 @@ static int lm78_detect(struct i2c_adapter *adapter, int address, int kind) | |||
496 | /* Reserve the ISA region */ | 500 | /* Reserve the ISA region */ |
497 | if (is_isa) | 501 | if (is_isa) |
498 | if (!request_region(address, LM78_EXTENT, | 502 | if (!request_region(address, LM78_EXTENT, |
499 | lm78_isa_driver.name)) { | 503 | lm78_isa_driver.driver.name)) { |
500 | err = -EBUSY; | 504 | err = -EBUSY; |
501 | goto ERROR0; | 505 | goto ERROR0; |
502 | } | 506 | } |