thermal/drivers/rockchip: use devm_reset_control_array_get_exclusive()
authorYe Xingchen <ye.xingchen@zte.com.cn>
Fri, 24 Mar 2023 03:08:55 +0000 (11:08 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Apr 2023 08:31:33 +0000 (10:31 +0200)
Switch devm_reset_control_array_get() to
devm_reset_control_array_get_exclusive().

Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/202303241108553006227@zte.com.cn
drivers/thermal/rockchip_thermal.c

index c30d3df..77231a9 100644 (file)
@@ -1543,7 +1543,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev)
        if (IS_ERR(thermal->regs))
                return PTR_ERR(thermal->regs);
 
-       thermal->reset = devm_reset_control_array_get(&pdev->dev, false, false);
+       thermal->reset = devm_reset_control_array_get_exclusive(&pdev->dev);
        if (IS_ERR(thermal->reset))
                return dev_err_probe(&pdev->dev, PTR_ERR(thermal->reset),
                                     "failed to get tsadc reset.\n");