diff options
Diffstat (limited to 'drivers/hwmon/smsc47b397.c')
-rw-r--r-- | drivers/hwmon/smsc47b397.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c index 2a3e21b5b6b4..8663bbbe97f5 100644 --- a/drivers/hwmon/smsc47b397.c +++ b/drivers/hwmon/smsc47b397.c | |||
@@ -226,8 +226,9 @@ static int smsc47b397_detach_client(struct i2c_client *client) | |||
226 | static int smsc47b397_detect(struct i2c_adapter *adapter); | 226 | static int smsc47b397_detect(struct i2c_adapter *adapter); |
227 | 227 | ||
228 | static struct i2c_driver smsc47b397_driver = { | 228 | static struct i2c_driver smsc47b397_driver = { |
229 | .owner = THIS_MODULE, | 229 | .driver = { |
230 | .name = "smsc47b397", | 230 | .name = "smsc47b397", |
231 | }, | ||
231 | .attach_adapter = smsc47b397_detect, | 232 | .attach_adapter = smsc47b397_detect, |
232 | .detach_client = smsc47b397_detach_client, | 233 | .detach_client = smsc47b397_detach_client, |
233 | }; | 234 | }; |
@@ -238,7 +239,8 @@ static int smsc47b397_detect(struct i2c_adapter *adapter) | |||
238 | struct smsc47b397_data *data; | 239 | struct smsc47b397_data *data; |
239 | int err = 0; | 240 | int err = 0; |
240 | 241 | ||
241 | if (!request_region(address, SMSC_EXTENT, smsc47b397_driver.name)) { | 242 | if (!request_region(address, SMSC_EXTENT, |
243 | smsc47b397_driver.driver.name)) { | ||
242 | dev_err(&adapter->dev, "Region 0x%x already in use!\n", | 244 | dev_err(&adapter->dev, "Region 0x%x already in use!\n", |
243 | address); | 245 | address); |
244 | return -EBUSY; | 246 | return -EBUSY; |