commit | 4cb9f043447ebb3948aad78b5f9d12a0a7fac6ae | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed May 15 12:34:21 2019 +0300 |
committer | Eduardo Valentin <edubezval@gmail.com> | Sun Jun 02 20:23:02 2019 -0700 |
tree | a30e4f725b00c57c001b81a6440fd5f34e962b56 | |
parent | f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a [diff] |
thermal: thermal_mmio: remove some dead code The platform_get_resource() function doesn't return error pointers, it returns NULL. The way this is normally done, is that we pass the NULL resource to devm_ioremap_resource() and then check for errors from that. See the comment in front of devm_ioremap_resource() for more details. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Talel Shenhar <talel@amazon.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>