aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sis5595.c
diff options
context:
space:
mode:
authorLaurent Riffard <laurent.riffard@free.fr>2005-11-26 14:37:41 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-06 01:16:23 -0500
commitcdaf79349c7d24e1d33acb6497849c9e956a33ea (patch)
tree48f22bb5f215953ac0e57385282fbc5042a03955 /drivers/hwmon/sis5595.c
parenta9718b0c1154dcbd955be6aaee47a314cde6a25a (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/sis5595.c')
-rw-r--r--drivers/hwmon/sis5595.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c
index 9c6cadec1087..9f44b93f3261 100644
--- a/drivers/hwmon/sis5595.c
+++ b/drivers/hwmon/sis5595.c
@@ -198,8 +198,10 @@ static struct sis5595_data *sis5595_update_device(struct device *dev);
198static void sis5595_init_client(struct i2c_client *client); 198static void sis5595_init_client(struct i2c_client *client);
199 199
200static struct i2c_driver sis5595_driver = { 200static struct i2c_driver sis5595_driver = {
201 .owner = THIS_MODULE, 201 .driver = {
202 .name = "sis5595", 202 .owner = THIS_MODULE,
203 .name = "sis5595",
204 },
203 .attach_adapter = sis5595_detect, 205 .attach_adapter = sis5595_detect,
204 .detach_client = sis5595_detach_client, 206 .detach_client = sis5595_detach_client,
205}; 207};
@@ -484,7 +486,8 @@ static int sis5595_detect(struct i2c_adapter *adapter)
484 if (force_addr) 486 if (force_addr)
485 address = force_addr & ~(SIS5595_EXTENT - 1); 487 address = force_addr & ~(SIS5595_EXTENT - 1);
486 /* Reserve the ISA region */ 488 /* Reserve the ISA region */
487 if (!request_region(address, SIS5595_EXTENT, sis5595_driver.name)) { 489 if (!request_region(address, SIS5595_EXTENT,
490 sis5595_driver.driver.name)) {
488 err = -EBUSY; 491 err = -EBUSY;
489 goto exit; 492 goto exit;
490 } 493 }