diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2014-12-23 18:23:36 -0500 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-12-23 21:37:44 -0500 |
commit | f8061d383b09ed933a49ac3fd301c2f991261851 (patch) | |
tree | 4792ec9cb17fa7b3e33bba307a7fd473935835b4 /drivers/thermal | |
parent | cc3f71a41576ba014ba3b80d5d68b7faa90bfeef (diff) |
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>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/int340x_thermal/int3403_thermal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c index 479d754c3f57..0faf500d8a77 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) | |||
301 | { | 301 | { |
302 | struct int3403_sensor *obj = priv->priv; | 302 | struct int3403_sensor *obj = priv->priv; |
303 | 303 | ||
304 | acpi_remove_notify_handler(priv->adev->handle, | ||
305 | ACPI_DEVICE_NOTIFY, int3403_notify); | ||
304 | thermal_zone_device_unregister(obj->tzone); | 306 | thermal_zone_device_unregister(obj->tzone); |
305 | return 0; | 307 | return 0; |
306 | } | 308 | } |