]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0aac994cb848962752e367d471b8e3674ce6871
treeae2bac5cb75616afe177950c0e5cb19533612085
parent0d7dfcef9ff9481b856053f73bbaa882069e9972
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