soc: amlogic: replace devm_reset_control_array_get()

devm_reset_control_array_get_exclusive() looks more readable

Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/1605667700-16681-1-git-send-email-yejune.deng@gmail.com
This commit is contained in:
Yejune Deng 2020-11-18 10:48:20 +08:00 committed by Kevin Hilman
parent 28f851e6af
commit 1116e43e7e
2 changed files with 2 additions and 3 deletions

View File

@ -413,8 +413,7 @@ static int meson_ee_pwrc_init_domain(struct platform_device *pdev,
dev_warn(&pdev->dev, "Invalid resets count %d for domain %s\n", dev_warn(&pdev->dev, "Invalid resets count %d for domain %s\n",
count, dom->desc.name); count, dom->desc.name);
dom->rstc = devm_reset_control_array_get(&pdev->dev, false, dom->rstc = devm_reset_control_array_get_exclusive(&pdev->dev);
false);
if (IS_ERR(dom->rstc)) if (IS_ERR(dom->rstc))
return PTR_ERR(dom->rstc); return PTR_ERR(dom->rstc);
} }

View File

@ -304,7 +304,7 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev)
return PTR_ERR(regmap_hhi); return PTR_ERR(regmap_hhi);
} }
rstc = devm_reset_control_array_get(&pdev->dev, false, false); rstc = devm_reset_control_array_get_exclusive(&pdev->dev);
if (IS_ERR(rstc)) { if (IS_ERR(rstc)) {
if (PTR_ERR(rstc) != -EPROBE_DEFER) if (PTR_ERR(rstc) != -EPROBE_DEFER)
dev_err(&pdev->dev, "failed to get reset lines\n"); dev_err(&pdev->dev, "failed to get reset lines\n");