summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2025-08-25 17:10:04 +0800
committerR b b666 <[email protected]>2025-08-26 09:34:15 +0800
commit1892b27a45cf39794fef91dcdc2d3bae08957112 (patch)
treea4e9130b31951978c26b3121e368fde1f0c5dca0
parent7101b22ffb3355145c8497d4d441dc121c889be1 (diff)
[DM/THERMAL] Fixup the PWM-FAN remove handle data ptr
Signed-off-by: GuEe-GUI <[email protected]>
-rw-r--r--components/drivers/thermal/thermal-cool-pwm-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/thermal/thermal-cool-pwm-fan.c b/components/drivers/thermal/thermal-cool-pwm-fan.c
index d6c25392f1..69a0899896 100644
--- a/components/drivers/thermal/thermal-cool-pwm-fan.c
+++ b/components/drivers/thermal/thermal-cool-pwm-fan.c
@@ -255,7 +255,7 @@ _fail:
static rt_err_t pwm_fan_cool_remove(struct rt_platform_device *pdev)
{
- struct pwm_fan_cool *pf_cool = pdev->parent.ofw_node;
+ struct pwm_fan_cool *pf_cool = pdev->parent.user_data;
rt_thermal_cooling_device_unregister(&pf_cool->parent);