diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-09-19 13:35:00 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-10-22 17:38:24 -0700 |
commit | d1d2c290b3c04b65fa6132eeebe50a070746d8f6 (patch) | |
tree | aada788a9a6c3f3fb429a45e5d9da0f1730c14a9 /drivers/thermal/hisi_thermal.c | |
parent | b6ad3981ff94b415d48399e949db0bdfbe360736 (diff) | |
download | linux-d1d2c290b3c04b65fa6132eeebe50a070746d8f6.tar.gz |
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>
Diffstat (limited to 'drivers/thermal/hisi_thermal.c')
0 files changed, 0 insertions, 0 deletions