]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI thermal: extract return values using PTR_ERR
authorThomas Sujith <sujith.thomas@intel.com>
Fri, 15 Feb 2008 23:26:54 +0000 (18:26 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 15 Feb 2008 23:26:54 +0000 (18:26 -0500)
commitfb624e55dd102cd052c23c5dcc0f079e52e1b39e
tree57d6af9424a3ea07914317821d9a8a2c7505368f
parent033f52f289c2f0915fff1c3c19872639e1edc04e
ACPI thermal: extract return values using PTR_ERR

Need to extract errors using PTR_ERR macro and
process accordingly.thermal_cooling_device_register
returning NULL means that CONFIG_THERMAL=n and in that
case no need to create symbolic links.

Signed-off-by: Thomas Sujith <sujith.thomas@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_core.c