From 1892b27a45cf39794fef91dcdc2d3bae08957112 Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Mon, 25 Aug 2025 17:10:04 +0800 Subject: [PATCH] [DM/THERMAL] Fixup the PWM-FAN remove handle data ptr Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/thermal/thermal-cool-pwm-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);