thermal: armada: fix a test in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Sep 2018 10:35:00 +0000 (13:35 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:38:24 +0000 (17:38 -0700)
commitd1d2c290b3c04b65fa6132eeebe50a070746d8f6
treeaada788a9a6c3f3fb429a45e5d9da0f1730c14a9
parentb6ad3981ff94b415d48399e949db0bdfbe360736
thermal: armada: fix a test in probe()

The platform_get_resource() function doesn't return error pointers, it
returns NULL on error.

Fixes: 3d4e51844a4e ("thermal: armada: convert driver to syscon register accesses")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c