Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/drivers/thermal/thermal-cool-pwm-fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static rt_err_t pwm_fan_cool_probe(struct rt_platform_device *pdev)

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);

Expand Down
1 change: 1 addition & 0 deletions components/drivers/thermal/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ static void thermal_ofw_setup(struct rt_ofw_node *np, struct rt_thermal_zone_dev
}
}
_end:
;
}
#else
rt_inline void thermal_ofw_setup(struct rt_ofw_node *np, struct rt_thermal_zone_device *zdev)
Expand Down