]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: thermal_mmio: remove some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 May 2019 09:34:21 +0000 (12:34 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 22 Sep 2019 20:44:52 +0000 (13:44 -0700)
commit0df8c7f2ffdf0f15adb9ecb092b54e4329c293f4
tree8e1d2a1691b6a4264b3fb2363540b638b19fab01
parentace9867f5829d5f06eaa3757797ce1c3d83a799e
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>
drivers/thermal/thermal_mmio.c