Re: [PATCH v2 3/3] hwmon: (amc6821) Add cooling device support
From: João Paulo Gonçalves
Date: Tue Jun 03 2025 - 14:46:48 EST
Hi all,
> +
> + if (IS_ENABLED(CONFIG_THERMAL) && fan_np && data->fan_cooling_levels)
> + return PTR_ERR_OR_ZERO(devm_thermal_of_cooling_device_register(dev,
> + fan_np,
> + client->name,
> + data,
> + &amc6821_cooling_ops));
> +
> + return 0;
> }
There's a mistake here: `fan_np` is used after `of_node_put(fan_np)`. I will
address it in v3.
Sorry for the inconvenience.
Best Regards,
João Paulo Gonçalves