phy: amlogic: Replace devm_reset_control_array_get()
authorYejune Deng <yejune.deng@gmail.com>
Tue, 3 Nov 2020 04:37:54 +0000 (12:37 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 16 Nov 2020 07:34:47 +0000 (13:04 +0530)
devm_reset_control_array_get_exclusive() looks more readable

Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/1604378274-6860-1-git-send-email-yejune.deng@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/amlogic/phy-meson-axg-pcie.c
drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c
drivers/soc/amlogic/meson-ee-pwrc.c
drivers/soc/amlogic/meson-gx-pwrc-vpu.c

index 58a7507a8422c3a62f6ef5353c99009d12818deb..2299bab38e05d403008f16374d59dce5a963f84f 100644 (file)
@@ -153,7 +153,7 @@ static int phy_axg_pcie_probe(struct platform_device *pdev)
        if (IS_ERR(priv->regmap))
                return PTR_ERR(priv->regmap);
 
-       priv->reset = devm_reset_control_array_get(dev, false, false);
+       priv->reset = devm_reset_control_array_get_exclusive(dev);
        if (IS_ERR(priv->reset))
                return PTR_ERR(priv->reset);
 
index ebe3d0ddd304eb165bdd9115501fa1abb6feabdb..5b471ab80fe289e6b66161292f589077b676672e 100644 (file)
@@ -416,7 +416,7 @@ static int phy_g12a_usb3_pcie_probe(struct platform_device *pdev)
        if (ret)
                goto err_disable_clk_ref;
 
-       priv->reset = devm_reset_control_array_get(dev, false, false);
+       priv->reset = devm_reset_control_array_get_exclusive(dev);
        if (IS_ERR(priv->reset))
                return PTR_ERR(priv->reset);
 
index 5164a4dc23521b4525dbd55de0d909c62bdea29a..551edd934ba1389f1d9b91a95a56ca9a07d2460c 100644 (file)
@@ -412,8 +412,7 @@ static int meson_ee_pwrc_init_domain(struct platform_device *pdev,
                        dev_warn(&pdev->dev, "Invalid resets count %d for domain %s\n",
                                 count, dom->desc.name);
 
-               dom->rstc = devm_reset_control_array_get(&pdev->dev, false,
-                                                        false);
+               dom->rstc = devm_reset_control_array_get_exclusive(&pdev->dev)
                if (IS_ERR(dom->rstc))
                        return PTR_ERR(dom->rstc);
        }
index 21b4bc811c00744a99ee7597a9d23829efa3df5b..a4dba8a9cfbc50bb09c6bba6a7c5ed0de8f879e3 100644 (file)
@@ -303,7 +303,7 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev)
                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 (PTR_ERR(rstc) != -EPROBE_DEFER)
                        dev_err(&pdev->dev, "failed to get reset lines\n");