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)
commitfb84d9907f0ff0e3f7d70d55039ddf0f78d2a472
treeae2bac5cb75616afe177950c0e5cb19533612085
parentaa3b5d222da5922ab1883eba3e9d8f92ad148155
thermal: rcar_thermal: propagate return value of thermal_zone_device_register

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>
drivers/thermal/rcar_thermal.c