From: Aaron Lu Date: Mon, 26 May 2014 12:34:07 +0000 (+0200) Subject: ACPI / thermal: fix workqueue destroy order X-Git-Tag: omap-for-v3.16/fixes-against-rc1~127^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2807bd18cc60ec471917b5158e98e4d7b7e030fb;p=pandora-kernel.git ACPI / thermal: fix workqueue destroy order When the thermal module is to be removed, we should destroy the wq acpi_thermal_pm_queue after the ACPI driver's remove callback is executed as we will need to flush the workqueue there, or a NULL pointer access will be hit. Reported-and-tested-by: Kui Zhang References: http://www.spinics.net/lists/kernel/msg1747251.html Cc: All applicable Signed-off-by: Aaron Lu Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed