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/it87.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/it87.c')
-rw-r--r-- | drivers/hwmon/it87.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index d5f0d92378c5..24d520bcc0b6 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -234,16 +234,20 @@ static void it87_init_client(struct i2c_client *client, struct it87_data *data); | |||
234 | 234 | ||
235 | 235 | ||
236 | static struct i2c_driver it87_driver = { | 236 | static struct i2c_driver it87_driver = { |
237 | .owner = THIS_MODULE, | 237 | .driver = { |
238 | .name = "it87", | 238 | .owner = THIS_MODULE, |
239 | .name = "it87", | ||
240 | }, | ||
239 | .id = I2C_DRIVERID_IT87, | 241 | .id = I2C_DRIVERID_IT87, |
240 | .attach_adapter = it87_attach_adapter, | 242 | .attach_adapter = it87_attach_adapter, |
241 | .detach_client = it87_detach_client, | 243 | .detach_client = it87_detach_client, |
242 | }; | 244 | }; |
243 | 245 | ||
244 | static struct i2c_driver it87_isa_driver = { | 246 | static struct i2c_driver it87_isa_driver = { |
245 | .owner = THIS_MODULE, | 247 | .driver = { |
246 | .name = "it87-isa", | 248 | .owner = THIS_MODULE, |
249 | .name = "it87-isa", | ||
250 | }, | ||
247 | .attach_adapter = it87_isa_attach_adapter, | 251 | .attach_adapter = it87_isa_attach_adapter, |
248 | .detach_client = it87_detach_client, | 252 | .detach_client = it87_detach_client, |
249 | }; | 253 | }; |
@@ -760,7 +764,8 @@ static int it87_detect(struct i2c_adapter *adapter, int address, int kind) | |||
760 | 764 | ||
761 | /* Reserve the ISA region */ | 765 | /* Reserve the ISA region */ |
762 | if (is_isa) | 766 | if (is_isa) |
763 | if (!request_region(address, IT87_EXTENT, it87_isa_driver.name)) | 767 | if (!request_region(address, IT87_EXTENT, |
768 | it87_isa_driver.driver.name)) | ||
764 | goto ERROR0; | 769 | goto ERROR0; |
765 | 770 | ||
766 | /* For now, we presume we have a valid client. We create the | 771 | /* For now, we presume we have a valid client. We create the |