Thermal/int340x/int3403: Free acpi notification handler

Remove acpi notification handler when zone is removed.

Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
Srinivas Pandruvada 2014-12-23 15:23:36 -08:00 • committed by Zhang Rui
commit f8061d383b

View file

@ -301,6 +301,8 @@ static int int3403_sensor_remove(struct int3403_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);
return 0;
}