thermal: use ERR_PTR for returning error
authorThomas Sujith <sujith.thomas@intel.com>
Fri, 15 Feb 2008 05:59:50 +0000 (00:59 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 15 Feb 2008 23:21:30 +0000 (18:21 -0500)
commit3e6fda5c1159823fc02463eceb564c8bfc0e7a0e
tree38af580a57b553a902db25ec1401d8005885981d
parentc751670902c3dd9abbed279170a832e6a1e6cf94
thermal: use ERR_PTR for returning error

Need to return using ERR_PTR instead of NULL
in case of errors.

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