w1: sgi_w1: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 9 Oct 2019 14:44:35 +0000 (22:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 13:24:18 +0000 (15:24 +0200)
commit71200fcbb91c1a6b6da7fe1c806c6dd27b42e14c
tree7ba30c84bc8789d3bb3b024c680716f87b4137b8
parent3e917975b7cdef6cfe92931e04677d8cf1d3df98
w1: sgi_w1: use devm_platform_ioremap_resource() to simplify code

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191009144435.12656-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/sgi_w1.c