thermal: armada: fix copy-paste error in armada_thermal_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 30 Jul 2018 07:07:03 +0000 (07:07 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Aug 2018 16:56:12 +0000 (09:56 -0700)
commit84b64de597bcc26549a7cbfe2fa8022bbc142daa
treec2fb2c3d67b9a8d706df1ec87839baeb1473e373
parent542cdf4068049458e1411b120bd5a4bbe3ddc49a
thermal: armada: fix copy-paste error in armada_thermal_probe()

The return value from devm_kzalloc() is not checked correctly. The
test is done against a wrong variable. Fix it.

Fixes: e72f03ef2543 ("thermal: armada: use the resource managed registration helper alternative")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c