MIPS: OCTEON: use devm_platform_ioremap_resource
authorQinglang Miao <miaoqinglang@huawei.com>
Wed, 16 Sep 2020 06:21:27 +0000 (14:21 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 18 Sep 2020 13:30:41 +0000 (15:30 +0200)
commit0ee69c589ec8659560910815f32c13af8587a779
tree479cb74318ff51b7744c75cf246011a4cb50ce04
parentb0a1c2903b5f43861a78a25fe4f389d99607ae04
MIPS: OCTEON: use devm_platform_ioremap_resource

Note that error handling on the result of a call to platform_get_resource()
is unneeded when the value is passed to devm_ioremap_resource(), so remove
it. Then use the helper function that wraps the calls to
platform_get_resource() and devm_ioremap_resource() together.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/octeon-usb.c