diff options
-rw-r--r-- | drivers/macintosh/therm_adt746x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index 556f0feaa4df..95b676a19be7 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c | |||
@@ -387,7 +387,7 @@ static int probe_thermostat(struct i2c_client *client, | |||
387 | i2c_set_clientdata(client, th); | 387 | i2c_set_clientdata(client, th); |
388 | th->clt = client; | 388 | th->clt = client; |
389 | 389 | ||
390 | rc = read_reg(th, 0); | 390 | rc = read_reg(th, CONFIG_REG); |
391 | if (rc < 0) { | 391 | if (rc < 0) { |
392 | dev_err(&client->dev, "Thermostat failed to read config!\n"); | 392 | dev_err(&client->dev, "Thermostat failed to read config!\n"); |
393 | kfree(th); | 393 | kfree(th); |