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/via686a.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/via686a.c')
-rw-r--r-- | drivers/hwmon/via686a.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index 6f696f897176..db75fbccfb62 100644 --- a/drivers/hwmon/via686a.c +++ b/drivers/hwmon/via686a.c | |||
@@ -572,8 +572,10 @@ static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL); | |||
572 | /* The driver. I choose to use type i2c_driver, as at is identical to both | 572 | /* The driver. I choose to use type i2c_driver, as at is identical to both |
573 | smbus_driver and isa_driver, and clients could be of either kind */ | 573 | smbus_driver and isa_driver, and clients could be of either kind */ |
574 | static struct i2c_driver via686a_driver = { | 574 | static struct i2c_driver via686a_driver = { |
575 | .owner = THIS_MODULE, | 575 | .driver = { |
576 | .name = "via686a", | 576 | .owner = THIS_MODULE, |
577 | .name = "via686a", | ||
578 | }, | ||
577 | .attach_adapter = via686a_detect, | 579 | .attach_adapter = via686a_detect, |
578 | .detach_client = via686a_detach_client, | 580 | .detach_client = via686a_detach_client, |
579 | }; | 581 | }; |
@@ -615,7 +617,8 @@ static int via686a_detect(struct i2c_adapter *adapter) | |||
615 | } | 617 | } |
616 | 618 | ||
617 | /* Reserve the ISA region */ | 619 | /* Reserve the ISA region */ |
618 | if (!request_region(address, VIA686A_EXTENT, via686a_driver.name)) { | 620 | if (!request_region(address, VIA686A_EXTENT, |
621 | via686a_driver.driver.name)) { | ||
619 | dev_err(&adapter->dev, "region 0x%x already in use!\n", | 622 | dev_err(&adapter->dev, "region 0x%x already in use!\n", |
620 | address); | 623 | address); |
621 | return -ENODEV; | 624 | return -ENODEV; |