summaryrefslogtreecommitdiff
path: root/drivers/regulator/vexpress-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/vexpress-regulator.c')
-rw-r--r--drivers/regulator/vexpress-regulator.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/regulator/vexpress-regulator.c b/drivers/regulator/vexpress-regulator.c
index 1235f46e633e..5d39663efcaa 100644
--- a/drivers/regulator/vexpress-regulator.c
+++ b/drivers/regulator/vexpress-regulator.c
@@ -75,10 +75,7 @@ static int vexpress_regulator_probe(struct platform_device *pdev)
config.of_node = pdev->dev.of_node;
rdev = devm_regulator_register(&pdev->dev, desc, &config);
- if (IS_ERR(rdev))
- return PTR_ERR(rdev);
-
- return 0;
+ return PTR_ERR_OR_ZERO(rdev);
}
static const struct of_device_id vexpress_regulator_of_match[] = {