diff options
author | Len Brown <len.brown@intel.com> | 2006-01-07 02:05:40 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 02:05:40 -0500 |
commit | add5b5ee992e40c9cd8697ea94c223628be162a7 (patch) | |
tree | 7f3f279f3e6b41e61d7dfaf4d25a5251024a7185 /drivers/hwmon/lm78.c | |
parent | 25da0974601fc8096461f3d3f7ca3aab8e79adfb (diff) | |
parent | 0aec63e67c69545ca757a73a66f5dcf05fa484bf (diff) |
Auto-update from upstream
Diffstat (limited to 'drivers/hwmon/lm78.c')
-rw-r--r-- | drivers/hwmon/lm78.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 78cdd506439f..e404001e20da 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -164,17 +164,18 @@ static void lm78_init_client(struct i2c_client *client); | |||
164 | 164 | ||
165 | 165 | ||
166 | static struct i2c_driver lm78_driver = { | 166 | static struct i2c_driver lm78_driver = { |
167 | .owner = THIS_MODULE, | 167 | .driver = { |
168 | .name = "lm78", | 168 | .name = "lm78", |
169 | }, | ||
169 | .id = I2C_DRIVERID_LM78, | 170 | .id = I2C_DRIVERID_LM78, |
170 | .flags = I2C_DF_NOTIFY, | ||
171 | .attach_adapter = lm78_attach_adapter, | 171 | .attach_adapter = lm78_attach_adapter, |
172 | .detach_client = lm78_detach_client, | 172 | .detach_client = lm78_detach_client, |
173 | }; | 173 | }; |
174 | 174 | ||
175 | static struct i2c_driver lm78_isa_driver = { | 175 | static struct i2c_driver lm78_isa_driver = { |
176 | .owner = THIS_MODULE, | 176 | .driver = { |
177 | .name = "lm78-isa", | 177 | .name = "lm78-isa", |
178 | }, | ||
178 | .attach_adapter = lm78_isa_attach_adapter, | 179 | .attach_adapter = lm78_isa_attach_adapter, |
179 | .detach_client = lm78_detach_client, | 180 | .detach_client = lm78_detach_client, |
180 | }; | 181 | }; |
@@ -497,7 +498,7 @@ static int lm78_detect(struct i2c_adapter *adapter, int address, int kind) | |||
497 | /* Reserve the ISA region */ | 498 | /* Reserve the ISA region */ |
498 | if (is_isa) | 499 | if (is_isa) |
499 | if (!request_region(address, LM78_EXTENT, | 500 | if (!request_region(address, LM78_EXTENT, |
500 | lm78_isa_driver.name)) { | 501 | lm78_isa_driver.driver.name)) { |
501 | err = -EBUSY; | 502 | err = -EBUSY; |
502 | goto ERROR0; | 503 | goto ERROR0; |
503 | } | 504 | } |