]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: solve compilation errors in rcar_thermal
authorDevendra Naga <develkernel412222@gmail.com>
Wed, 31 Oct 2012 08:46:10 +0000 (17:46 +0900)
committerZhang Rui <rui.zhang@intel.com>
Sat, 3 Nov 2012 01:52:48 +0000 (09:52 +0800)
commitf215d7514bde6ecca44dac00f2f5eb904889c843
treeeb8cf8809756c9d764e53325cf81a7a79d70eda6
parentea315015cf61f013b12373a3f5cf89d0ccbecda5
thermal: solve compilation errors in rcar_thermal

following were the errors reported

drivers/thermal/rcar_thermal.c: In function ‘rcar_thermal_probe’:
drivers/thermal/rcar_thermal.c:214:10: warning: passing argument 3 of ‘thermal_zone_device_register’ makes integer from pointer without a cast [enabled by default]
include/linux/thermal.h:166:29: note: expected ‘int’ but argument is of type ‘struct rcar_thermal_priv *’
drivers/thermal/rcar_thermal.c:214:10: error: too few arguments to function ‘thermal_zone_device_register’
include/linux/thermal.h:166:29: note: declared here
make[1]: *** [drivers/thermal/rcar_thermal.o] Error 1
make: *** [drivers/thermal/rcar_thermal.o] Error 2

with gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rcar_thermal.c