diff options
| author | Mark Brown <broonie@kernel.org> | 2019-11-22 19:56:20 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-11-22 19:56:20 +0000 |
| commit | a21da94f617bce0771144ea8093b6987184b38d0 (patch) | |
| tree | ca8fe8bcd71f07a9215e6ac3a584fc22a45a3d8b /drivers/regulator/vexpress-regulator.c | |
| parent | c642e87086847d7f61b7b7d8744ac23e44cac91e (diff) | |
| parent | c15d5a645875bc9b89f68f5d3fb608f691ac78d7 (diff) | |
| download | linux-a21da94f617bce0771144ea8093b6987184b38d0.tar.gz linux-a21da94f617bce0771144ea8093b6987184b38d0.tar.bz2 linux-a21da94f617bce0771144ea8093b6987184b38d0.zip | |
Merge branch 'regulator-5.5' into regulator-next
Diffstat (limited to 'drivers/regulator/vexpress-regulator.c')
| -rw-r--r-- | drivers/regulator/vexpress-regulator.c | 5 |
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[] = { |
