Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188981
b: refs/heads/master
c: 8b4709e
h: refs/heads/master
i:
  188979: b251145
v: v3
  • Loading branch information
Wolfram Sang authored and Liam Girdwood committed Mar 22, 2010
1 parent 6fe9a01 commit 3a1a65e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 451a73cd46573444f68f412c87439c0a291718ec
refs/heads/master: 8b4709ecea4aab1957ae7b726d6824485404a3a5
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/max1586.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ static int __devexit max1586_pmic_remove(struct i2c_client *client)
for (i = 0; i <= MAX1586_V6; i++)
if (rdev[i])
regulator_unregister(rdev[i]);
kfree(rdev);
i2c_set_clientdata(client, NULL);
kfree(rdev);

return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ static int __devinit max8649_regulator_probe(struct i2c_client *client,
dev_info(info->dev, "Max8649 regulator device is detected.\n");
return 0;
out:
i2c_set_clientdata(client, NULL);
kfree(info);
return ret;
}
Expand All @@ -367,9 +368,9 @@ static int __devexit max8649_regulator_remove(struct i2c_client *client)
if (info) {
if (info->regulator)
regulator_unregister(info->regulator);
i2c_set_clientdata(client, NULL);
kfree(info);
}
i2c_set_clientdata(client, NULL);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/max8660.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ static int __devexit max8660_remove(struct i2c_client *client)
for (i = 0; i < MAX8660_V_END; i++)
if (rdev[i])
regulator_unregister(rdev[i]);
kfree(rdev);
i2c_set_clientdata(client, NULL);
kfree(rdev);

return 0;
}
Expand Down

0 comments on commit 3a1a65e

Please sign in to comment.