aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm78.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm78.c')
-rw-r--r--drivers/hwmon/lm78.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c
index 18448f83a6b0..3af5b06995e0 100644
--- a/drivers/hwmon/lm78.c
+++ b/drivers/hwmon/lm78.c
@@ -164,16 +164,20 @@ static void lm78_init_client(struct i2c_client *client);
164 164
165 165
166static struct i2c_driver lm78_driver = { 166static struct i2c_driver lm78_driver = {
167 .owner = THIS_MODULE, 167 .driver = {
168 .name = "lm78", 168 .owner = THIS_MODULE,
169 .name = "lm78",
170 },
169 .id = I2C_DRIVERID_LM78, 171 .id = I2C_DRIVERID_LM78,
170 .attach_adapter = lm78_attach_adapter, 172 .attach_adapter = lm78_attach_adapter,
171 .detach_client = lm78_detach_client, 173 .detach_client = lm78_detach_client,
172}; 174};
173 175
174static struct i2c_driver lm78_isa_driver = { 176static struct i2c_driver lm78_isa_driver = {
175 .owner = THIS_MODULE, 177 .driver = {
176 .name = "lm78-isa", 178 .owner = THIS_MODULE,
179 .name = "lm78-isa",
180 },
177 .attach_adapter = lm78_isa_attach_adapter, 181 .attach_adapter = lm78_isa_attach_adapter,
178 .detach_client = lm78_detach_client, 182 .detach_client = lm78_detach_client,
179}; 183};
@@ -496,7 +500,7 @@ static int lm78_detect(struct i2c_adapter *adapter, int address, int kind)
496 /* Reserve the ISA region */ 500 /* Reserve the ISA region */
497 if (is_isa) 501 if (is_isa)
498 if (!request_region(address, LM78_EXTENT, 502 if (!request_region(address, LM78_EXTENT,
499 lm78_isa_driver.name)) { 503 lm78_isa_driver.driver.name)) {
500 err = -EBUSY; 504 err = -EBUSY;
501 goto ERROR0; 505 goto ERROR0;
502 } 506 }