projects
/
linux-flexiantxendom0-3.2.10.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- patches.suse/slab-handle-memoryless-nodes-v2a.patch: Refresh.
[linux-flexiantxendom0-3.2.10.git]
/
drivers
/
macintosh
/
therm_adt746x.c
diff --git
a/drivers/macintosh/therm_adt746x.c
b/drivers/macintosh/therm_adt746x.c
index
386a797
..
5ff47ba
100644
(file)
--- a/
drivers/macintosh/therm_adt746x.c
+++ b/
drivers/macintosh/therm_adt746x.c
@@
-392,7
+392,7
@@
static int probe_thermostat(struct i2c_client *client,
i2c_set_clientdata(client, th);
th->clt = client;
- rc = read_reg(th, 0);
+ rc = read_reg(th, CONFIG_REG);
if (rc < 0) {
dev_err(&client->dev, "Thermostat failed to read config!\n");
kfree(th);