mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
thermal: rockchip: Make reset optional
Change-Id: I057a53e65d083a8ea24f0727bd0f73545482f2de Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user