thermal/drivers/rockchip: use devm_reset_control_array_get_exclusive()
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
This commit is contained in:
parent
c3d2718ae6
commit
fee5caec88
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user