diff options
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 |