aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83627hf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/w83627hf.c')
-rw-r--r--drivers/hwmon/w83627hf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index 27cfde1cd023..2ffb84f9c6b7 100644
--- a/drivers/hwmon/w83627hf.c
+++ b/drivers/hwmon/w83627hf.c
@@ -332,8 +332,10 @@ static struct w83627hf_data *w83627hf_update_device(struct device *dev);
332static void w83627hf_init_client(struct i2c_client *client); 332static void w83627hf_init_client(struct i2c_client *client);
333 333
334static struct i2c_driver w83627hf_driver = { 334static struct i2c_driver w83627hf_driver = {
335 .owner = THIS_MODULE, 335 .driver = {
336 .name = "w83627hf", 336 .owner = THIS_MODULE,
337 .name = "w83627hf",
338 },
337 .attach_adapter = w83627hf_detect, 339 .attach_adapter = w83627hf_detect,
338 .detach_client = w83627hf_detach_client, 340 .detach_client = w83627hf_detach_client,
339}; 341};
@@ -1009,7 +1011,7 @@ static int w83627hf_detect(struct i2c_adapter *adapter)
1009 address = force_addr & WINB_ALIGNMENT; 1011 address = force_addr & WINB_ALIGNMENT;
1010 1012
1011 if (!request_region(address + WINB_REGION_OFFSET, WINB_REGION_SIZE, 1013 if (!request_region(address + WINB_REGION_OFFSET, WINB_REGION_SIZE,
1012 w83627hf_driver.name)) { 1014 w83627hf_driver.driver.name)) {
1013 err = -EBUSY; 1015 err = -EBUSY;
1014 goto ERROR0; 1016 goto ERROR0;
1015 } 1017 }