thermal: db8500: Fix checking return value of thermal_zone_device_register
authorAxel Lin <axel.lin@ingics.com>
Tue, 12 Mar 2013 15:42:20 +0000 (15:42 +0000)
committerZhang Rui <rui.zhang@intel.com>
Tue, 26 Mar 2013 14:07:52 +0000 (22:07 +0800)
thermal_zone_device_register() returns ERR_PTR on error, thus use
IS_ERR rather than IS_ERR_OR_NULL to check return value.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/db8500_thermal.c

Simple merge