diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-09-08 23:24:00 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-09-08 23:24:00 +0300 |
commit | 32bf43e4efdb87e0f7e90ba3883e07b8522322ad (patch) | |
tree | 2183248e8f0a4c424fc77113d5eacab162f2a8a3 /drivers/thermal/spear_thermal.c | |
parent | fd88c59e7929ee1a155988e87df27686aa1de967 (diff) | |
parent | edd220b33f479cf9dcda0bfefb2cb8c5902e9885 (diff) | |
download | linux-32bf43e4efdb87e0f7e90ba3883e07b8522322ad.tar.xz |
Merge tag 'thermal-6.6-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more thermal control updates from Rafael Wysocki:
"Eliminate an obsolete thermal zone registration function"
* tag 'thermal-6.6-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
thermal: core: Drop thermal_zone_device_register()
thermal: Use thermal_tripless_zone_device_register()
thermal: core: Add function for registering tripless thermal zones
thermal: core: Clean up headers of thermal zone registration functions
Diffstat (limited to 'drivers/thermal/spear_thermal.c')
-rw-r--r-- | drivers/thermal/spear_thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index 6e78616a576e..96d99289799a 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -122,8 +122,8 @@ static int spear_thermal_probe(struct platform_device *pdev) stdev->flags = val; writel_relaxed(stdev->flags, stdev->thermal_base); - spear_thermal = thermal_zone_device_register("spear_thermal", 0, 0, - stdev, &ops, NULL, 0, 0); + spear_thermal = thermal_tripless_zone_device_register("spear_thermal", + stdev, &ops, NULL); if (IS_ERR(spear_thermal)) { dev_err(&pdev->dev, "thermal zone device is NULL\n"); ret = PTR_ERR(spear_thermal); |