From: Srinivas Pandruvada Date: Tue, 23 Dec 2014 23:23:36 +0000 (-0800) Subject: Thermal/int340x/int3403: Free acpi notification handler X-Git-Tag: v3.19-rc3~24^2^3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8061d383b09ed933a49ac3fd301c2f991261851;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git Thermal/int340x/int3403: Free acpi notification handler Remove acpi notification handler when zone is removed. Signed-off-by: Srinivas Pandruvada Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c index 479d754..0faf500 100644 --- a/drivers/thermal/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/int340x_thermal/int3403_thermal.c @@ -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; }