[PATCH] thermal/drivers/rockchip: use devm_reset_control_array_get_exclusive()

ye.xingchen@zte.com.cn posted 1 patch 2 years, 10 months ago
drivers/thermal/rockchip_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] thermal/drivers/rockchip: use devm_reset_control_array_get_exclusive()
Posted by ye.xingchen@zte.com.cn 2 years, 10 months ago
From: Ye Xingchen <ye.xingchen@zte.com.cn>

Switch devm_reset_control_array_get() to
devm_reset_control_array_get_exclusive().

Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
 drivers/thermal/rockchip_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index bb254bdff043..85df34417159 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -1378,7 +1378,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)) {
 		error = PTR_ERR(thermal->reset);
 		dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error);
-- 
2.25.1
Re: [PATCH] thermal/drivers/rockchip: use devm_reset_control_array_get_exclusive()
Posted by Daniel Lezcano 2 years, 10 months ago
On 24/03/2023 04:08, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
> 
> Switch devm_reset_control_array_get() to
> devm_reset_control_array_get_exclusive().
> 
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
> ---

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

Re: [PATCH] thermal/drivers/rockchip:use devm_reset_control_array_get_exclusive()
Posted by Philipp Zabel 2 years, 10 months ago
On Fr, 2023-03-24 at 11:08 +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
> 
> 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>

regards
Philipp