Re: [PATCH] hwmon: (w83627hf) remove VID sysfs files on error and remove
From: Guenter Roeck
Date: Tue Jun 16 2026 - 19:00:54 EST
On Mon, Jun 15, 2026 at 02:47:31PM +0800, Pengpeng Hou wrote:
> w83627hf_probe() creates cpu0_vid and vrm with device_create_file() when
> VID information is available.
>
> The error path and remove callback only remove the common and optional
> attribute groups. Those groups do not contain cpu0_vid or vrm, so the
> files can remain after a later probe failure or after device removal
> while their callbacks still expect live driver data.
>
> Remove the standalone VID sysfs files from both the probe error path and
> the remove callback.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
Applied to hwmon-next.
Thanks,
Guenter