diff options
author | Mark Brown <broonie@sirena.org.uk> | 2013-04-28 02:13:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@sirena.org.uk> | 2013-04-28 02:13:37 +0100 |
commit | 0e340ce1ddcf41ca435ef695ef004a6f587c749e (patch) | |
tree | 9f4cc87138ecf29762e1037a8c028c6ddd3ebc03 /drivers/regulator/max8649.c | |
parent | 97844ede9487fc7c4689ce1499bbaa10312618be (diff) | |
parent | 020501f1a0911af70873e4d3d122b2e1889ccd03 (diff) | |
download | linux-0e340ce1ddcf41ca435ef695ef004a6f587c749e.tar.bz2 |
Merge remote-tracking branch 'regulator/topic/core' into v3.9-rc8
Diffstat (limited to 'drivers/regulator/max8649.c')
-rw-r--r-- | drivers/regulator/max8649.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index 3ca14380f22d..f44427003611 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c @@ -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; } |