pwm: tegra: Explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Jul 2017 15:26:14 +0000 (17:26 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:53:07 +0000 (08:53 +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: Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: linux-pwm@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tegra.c

index e9b33f09ff096dd296da401aa1cf22e9a8c0448d..f8ebbece57b71ad5f03501304b8144b1341cbe7f 100644 (file)
@@ -218,7 +218,7 @@ static int tegra_pwm_probe(struct platform_device *pdev)
         */
        pwm->clk_rate = clk_get_rate(pwm->clk);
 
-       pwm->rst = devm_reset_control_get(&pdev->dev, "pwm");
+       pwm->rst = devm_reset_control_get_exclusive(&pdev->dev, "pwm");
        if (IS_ERR(pwm->rst)) {
                ret = PTR_ERR(pwm->rst);
                dev_err(&pdev->dev, "Reset control is not found: %d\n", ret);