ACPI: thermal: Check whether cooling device exists before unregistering
authorZhao Yakui <yakui.zhao@intel.com>
Fri, 15 Feb 2008 00:34:37 +0000 (08:34 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 15 Feb 2008 23:23:50 +0000 (18:23 -0500)
commitf28bb45e2863173a7464d98907677e903f42c68b
tree060cb979e0ead9762805861d0fd17412068de42f
parent101142c37be8e5af9b847860219217e6b958c739
ACPI: thermal: Check whether cooling device exists before unregistering

OS should check whether the cooling device exists before it is unregistered.
If it doesn't exists, it is unnecessary to remove the sysfs link
and call the function of thermal_cooling_device_unregister.

http://bugzilla.kernel.org/show_bug.cgi?id=9982

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Tested-by    : Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_core.c