pinctrl: sunxi: explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Jul 2017 15:26:11 +0000 (17:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:02 +0000 (15:01 +0200)
Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls
to explicitly state whether the driver needs exclusive or shared reset
control behavior. Convert all drivers requesting exclusive resets to the
explicit API call so the temporary transition helpers can be removed.

No functional changes.

Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c

index c96a3610a178cd9cebbb90f6fd24f3694326d76f..49a1deb97bb75912c77c37f5bc1fed19b1244cfc 100644 (file)
@@ -113,7 +113,7 @@ static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)
        struct reset_control *rstc;
        int ret;
 
-       rstc = devm_reset_control_get(&pdev->dev, NULL);
+       rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL);
        if (IS_ERR(rstc)) {
                dev_err(&pdev->dev, "Reset controller missing\n");
                return PTR_ERR(rstc);
index 5789e9ecbae19818f000cfa76a03ab9026927dae..67ee6f9b3b68981508748d351fe5cebffad94ccc 100644 (file)
@@ -100,7 +100,7 @@ static int sun8i_a23_r_pinctrl_probe(struct platform_device *pdev)
        struct reset_control *rstc;
        int ret;
 
-       rstc = devm_reset_control_get(&pdev->dev, NULL);
+       rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL);
        if (IS_ERR(rstc)) {
                dev_err(&pdev->dev, "Reset controller missing\n");
                return PTR_ERR(rstc);