Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 33cd870c authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: uniphier: Fix probe error handling



Ensure unwind all resources if probe fails.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d0233770
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -87,8 +87,10 @@ static int uniphier_regulator_probe(struct platform_device *pdev)
	}

	regmap = devm_regmap_init_mmio(dev, base, priv->data->regconf);
	if (IS_ERR(regmap))
		return PTR_ERR(regmap);
	if (IS_ERR(regmap)) {
		ret = PTR_ERR(regmap);
		goto out_rst_assert;
	}

	config.dev = dev;
	config.driver_data = priv;