mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
Thermal/int340x/int3403: Free acpi notification handler
Remove acpi notification handler when zone is removed. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
cc3f71a415
commit
f8061d383b
1 changed files with 2 additions and 0 deletions
|
@ -301,6 +301,8 @@ static int int3403_sensor_remove(struct int3403_priv *priv)
|
||||||
{
|
{
|
||||||
struct int3403_sensor *obj = priv->priv;
|
struct int3403_sensor *obj = priv->priv;
|
||||||
|
|
||||||
|
acpi_remove_notify_handler(priv->adev->handle,
|
||||||
|
ACPI_DEVICE_NOTIFY, int3403_notify);
|
||||||
thermal_zone_device_unregister(obj->tzone);
|
thermal_zone_device_unregister(obj->tzone);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue