intel_menlo: extract return values using PTR_ERR
authorThomas Sujith <sujith.thomas@intel.com>
Fri, 15 Feb 2008 06:05:23 +0000 (01:05 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 15 Feb 2008 23:29:30 +0000 (18:29 -0500)
commit69f6b8dd6b94ac594b6920b4530a3390fb1d3fd6
treefc014952ab575afb4b63ca861c1697e54cb83b11
parent43ff39f2f6450fa2e9a566f8bf007a26d76f2c9d
intel_menlo: 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/misc/intel_menlow.c