]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: OCTEON: octeon-usb: Use devm_platform_get_and_ioremap_resource()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 5 Jun 2021 07:55:37 +0000 (15:55 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 21 Jun 2021 09:32:47 +0000 (11:32 +0200)
commitca46a50ac5c4c75eb71a1d2ff9ca15707012d67b
tree70554ec8c5054ebed65099aa428e916406e6e840
parent7726564384bb7d5829e2e9e86a179ca12316a171
MIPS: OCTEON: octeon-usb: Use devm_platform_get_and_ioremap_resource()

Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().

And use devm_platform_get_and_ioremap_resource() to simplify
code.

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