Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365127
b: refs/heads/master
c: 020501f
h: refs/heads/master
i:
  365125: c20f7c2
  365123: 3d24182
  365119: dbb181f
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 28, 2013
1 parent 327e58d commit 3d6cf65
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 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: 1e4b545cdd93318379c6b1fb0a99536fa3260f53
refs/heads/master: 020501f1a0911af70873e4d3d122b2e1889ccd03
3 changes: 1 addition & 2 deletions trunk/drivers/regulator/max1586.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ static int max1586_pmic_remove(struct i2c_client *client)
int i;

for (i = 0; i <= MAX1586_V6; i++)
if (max1586->rdev[i])
regulator_unregister(max1586->rdev[i]);
regulator_unregister(max1586->rdev[i]);
return 0;
}

Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,8 @@ static int max8649_regulator_remove(struct i2c_client *client)
{
struct max8649_regulator_info *info = i2c_get_clientdata(client);

if (info) {
if (info->regulator)
regulator_unregister(info->regulator);
}
if (info)
regulator_unregister(info->regulator);

return 0;
}
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/regulator/max8660.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,7 @@ static int max8660_remove(struct i2c_client *client)
int i;

for (i = 0; i < MAX8660_V_END; i++)
if (max8660->rdev[i])
regulator_unregister(max8660->rdev[i]);
regulator_unregister(max8660->rdev[i]);
return 0;
}

Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/regulator/s5m8767.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,7 @@ static int s5m8767_pmic_probe(struct platform_device *pdev)
return 0;
err:
for (i = 0; i < s5m8767->num_regulators; i++)
if (rdev[i])
regulator_unregister(rdev[i]);
regulator_unregister(rdev[i]);

return ret;
}
Expand All @@ -936,8 +935,7 @@ static int s5m8767_pmic_remove(struct platform_device *pdev)
int i;

for (i = 0; i < s5m8767->num_regulators; i++)
if (rdev[i])
regulator_unregister(rdev[i]);
regulator_unregister(rdev[i]);

return 0;
}
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/regulator/tps6524x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ static int pmic_remove(struct spi_device *spi)
if (!hw)
return 0;
for (i = 0; i < N_REGULATORS; i++) {
if (hw->rdev[i])
regulator_unregister(hw->rdev[i]);
regulator_unregister(hw->rdev[i]);
hw->rdev[i] = NULL;
}
spi_set_drvdata(spi, NULL);
Expand Down

0 comments on commit 3d6cf65

Please sign in to comment.