We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e4bb15 commit 7050619Copy full SHA for 7050619
components/drivers/thermal/thermal-cool-pwm-fan.c
@@ -255,7 +255,7 @@ static rt_err_t pwm_fan_cool_probe(struct rt_platform_device *pdev)
255
256
static rt_err_t pwm_fan_cool_remove(struct rt_platform_device *pdev)
257
{
258
- struct pwm_fan_cool *pf_cool = pdev->parent.ofw_node;
+ struct pwm_fan_cool *pf_cool = pdev->parent.user_data;
259
260
rt_thermal_cooling_device_unregister(&pf_cool->parent);
261
0 commit comments