Skip to content

Commit 7050619

Browse files
committed
[DM/THERMAL] Fixup the PWM-FAN remove handle data ptr
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 2e4bb15 commit 7050619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/thermal/thermal-cool-pwm-fan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static rt_err_t pwm_fan_cool_probe(struct rt_platform_device *pdev)
255255

256256
static rt_err_t pwm_fan_cool_remove(struct rt_platform_device *pdev)
257257
{
258-
struct pwm_fan_cool *pf_cool = pdev->parent.ofw_node;
258+
struct pwm_fan_cool *pf_cool = pdev->parent.user_data;
259259

260260
rt_thermal_cooling_device_unregister(&pf_cool->parent);
261261

0 commit comments

Comments
 (0)