Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment