thermal: rcar_thermal: propagate return value of thermal_zone_device_register
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 4 Mar 2013 16:52:47 +0000 (16:52 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 11 Mar 2013 15:09:24 +0000 (23:09 +0800)
thermal_zone_device_register returns a value contained in the pointer itself
use PTR_ERR to obtain the address and return it at the end.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

No differences found