diff options
Diffstat (limited to 'drivers/platform/x86/intel_mid_thermal.c')
-rw-r--r-- | drivers/platform/x86/intel_mid_thermal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c index f0776504521f..3a578323122b 100644 --- a/drivers/platform/x86/intel_mid_thermal.c +++ b/drivers/platform/x86/intel_mid_thermal.c | |||
@@ -527,6 +527,7 @@ static int mid_thermal_remove(struct platform_device *pdev) | |||
527 | for (i = 0; i < MSIC_THERMAL_SENSORS; i++) | 527 | for (i = 0; i < MSIC_THERMAL_SENSORS; i++) |
528 | thermal_zone_device_unregister(pinfo->tzd[i]); | 528 | thermal_zone_device_unregister(pinfo->tzd[i]); |
529 | 529 | ||
530 | kfree(pinfo); | ||
530 | platform_set_drvdata(pdev, NULL); | 531 | platform_set_drvdata(pdev, NULL); |
531 | 532 | ||
532 | /* Stop the ADC */ | 533 | /* Stop the ADC */ |