summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/max77686.c1
-rw-r--r--drivers/regulator/max77693.c1
-rw-r--r--drivers/regulator/max8997.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index de5b30ea823c..ae001ccf26f4 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -483,7 +483,6 @@ static int max77686_pmic_probe(struct platform_device *pdev)
if (IS_ERR(max77686->rdev[i])) {
dev_err(&pdev->dev,
"regulator init failed for %d\n", i);
- max77686->rdev[i] = NULL;
return PTR_ERR(max77686->rdev[i]);
}
}
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c
index 2054ae1c496e..feb20bf4ccab 100644
--- a/drivers/regulator/max77693.c
+++ b/drivers/regulator/max77693.c
@@ -271,7 +271,6 @@ static int max77693_pmic_probe(struct platform_device *pdev)
if (IS_ERR(max77693_pmic->rdev[i])) {
dev_err(max77693_pmic->dev,
"Failed to initialize regulator-%d\n", id);
- max77693_pmic->rdev[i] = NULL;
return PTR_ERR(max77693_pmic->rdev[i]);
}
}
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c
index 059e8ed7fa24..bcd2488d1252 100644
--- a/drivers/regulator/max8997.c
+++ b/drivers/regulator/max8997.c
@@ -1209,7 +1209,6 @@ static int max8997_pmic_probe(struct platform_device *pdev)
if (IS_ERR(rdev[i])) {
dev_err(max8997->dev, "regulator init failed for %d\n",
id);
- rdev[i] = NULL;
return PTR_ERR(rdev[i]);
}
}