Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196605
b: refs/heads/master
c: 7429b38
h: refs/heads/master
i:
  196603: 5743d26
v: v3
  • Loading branch information
Wolfram Sang authored and Benjamin Herrenschmidt committed Apr 7, 2010
1 parent 798cd1f commit d995efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21dbeb91a24d867af0e98ba155bfa80d2906344f
refs/heads/master: 7429b3842cfb2b8ef5d333d8f680d80f8f7c787f
2 changes: 2 additions & 0 deletions trunk/drivers/macintosh/therm_adt746x.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ remove_thermostat(struct i2c_client *client)

thermostat = NULL;

i2c_set_clientdata(client, NULL);
kfree(th);

return 0;
Expand Down Expand Up @@ -399,6 +400,7 @@ static int probe_thermostat(struct i2c_client *client,
rc = read_reg(th, CONFIG_REG);
if (rc < 0) {
dev_err(&client->dev, "Thermostat failed to read config!\n");
i2c_set_clientdata(client, NULL);
kfree(th);
return -ENODEV;
}
Expand Down

0 comments on commit d995efa

Please sign in to comment.