staging: mt7621-pci: convert to use 'devm_platform_ioremap_resource'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 23 Nov 2020 09:36:36 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Nov 2020 08:12:18 +0000 (09:12 +0100)
commit108b2f2a9724548ffa64274731034d9723665c71
treeed07a3d1806356e470b0a8472824d2cd70060bf1
parent2fc0898bf3661ba576801acf214c08acdaf75761
staging: mt7621-pci: convert to use 'devm_platform_ioremap_resource'

Instead of getting resources parsing from DT first and remaping
afterwards, this can be done in one step using the kernel function
'devm_platform_ioremap_resource'. Hence, update to use it.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20201123093637.8300-7-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c