thermal: rockchip: Make reset optional

Change-Id: I057a53e65d083a8ea24f0727bd0f73545482f2de
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao
2025-06-12 11:42:29 +08:00
committed by Tao Huang
parent 209629d7d4
commit 70e221d140

View File

@@ -2687,7 +2687,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_optional_exclusive(&pdev->dev);
if (IS_ERR(thermal->reset)) {
if (PTR_ERR(thermal->reset) != -EPROBE_DEFER)
dev_err(&pdev->dev, "failed to get tsadc reset lines\n");