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/w83781d.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/w83781d.c')
-rw-r--r-- | drivers/hwmon/w83781d.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index a78929f2b3d8..fd1a59c53630 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -269,16 +269,20 @@ static struct w83781d_data *w83781d_update_device(struct device *dev); | |||
269 | static void w83781d_init_client(struct i2c_client *client); | 269 | static void w83781d_init_client(struct i2c_client *client); |
270 | 270 | ||
271 | static struct i2c_driver w83781d_driver = { | 271 | static struct i2c_driver w83781d_driver = { |
272 | .owner = THIS_MODULE, | 272 | .driver = { |
273 | .name = "w83781d", | 273 | .owner = THIS_MODULE, |
274 | .name = "w83781d", | ||
275 | }, | ||
274 | .id = I2C_DRIVERID_W83781D, | 276 | .id = I2C_DRIVERID_W83781D, |
275 | .attach_adapter = w83781d_attach_adapter, | 277 | .attach_adapter = w83781d_attach_adapter, |
276 | .detach_client = w83781d_detach_client, | 278 | .detach_client = w83781d_detach_client, |
277 | }; | 279 | }; |
278 | 280 | ||
279 | static struct i2c_driver w83781d_isa_driver = { | 281 | static struct i2c_driver w83781d_isa_driver = { |
280 | .owner = THIS_MODULE, | 282 | .driver = { |
281 | .name = "w83781d-isa", | 283 | .owner = THIS_MODULE, |
284 | .name = "w83781d-isa", | ||
285 | }, | ||
282 | .attach_adapter = w83781d_isa_attach_adapter, | 286 | .attach_adapter = w83781d_isa_attach_adapter, |
283 | .detach_client = w83781d_detach_client, | 287 | .detach_client = w83781d_detach_client, |
284 | }; | 288 | }; |
@@ -1011,7 +1015,7 @@ w83781d_detect(struct i2c_adapter *adapter, int address, int kind) | |||
1011 | 1015 | ||
1012 | if (is_isa) | 1016 | if (is_isa) |
1013 | if (!request_region(address, W83781D_EXTENT, | 1017 | if (!request_region(address, W83781D_EXTENT, |
1014 | w83781d_isa_driver.name)) { | 1018 | w83781d_isa_driver.driver.name)) { |
1015 | dev_dbg(&adapter->dev, "Request of region " | 1019 | dev_dbg(&adapter->dev, "Request of region " |
1016 | "0x%x-0x%x for w83781d failed\n", address, | 1020 | "0x%x-0x%x for w83781d failed\n", address, |
1017 | address + W83781D_EXTENT - 1); | 1021 | address + W83781D_EXTENT - 1); |