Skip to content

Commit 02832ed

Browse files
Johan Jonkerdlezcano
authored andcommitted
thermal/drivers/rockchip_thermal: Allow more resets for tsadc node
The tsadc node in rk356x.dtsi has more resets then currently supported by the rockchip_thermal.c driver, so use devm_reset_control_array_get() to reset them all. Signed-off-by: Johan Jonker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 5f553ac commit 02832ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/rockchip_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev)
13831383
if (IS_ERR(thermal->regs))
13841384
return PTR_ERR(thermal->regs);
13851385

1386-
thermal->reset = devm_reset_control_get(&pdev->dev, "tsadc-apb");
1386+
thermal->reset = devm_reset_control_array_get(&pdev->dev, false, false);
13871387
if (IS_ERR(thermal->reset)) {
13881388
error = PTR_ERR(thermal->reset);
13891389
dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error);

0 commit comments

Comments
 (0)