ata: pata_imx: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Mon, 10 Jul 2023 02:45:50 +0000 (10:45 +0800)
committerDamien Le Moal <dlemoal@kernel.org>
Wed, 2 Aug 2023 08:37:06 +0000 (17:37 +0900)
commit282298e95b7623330c0ab08abd0a19e43f5d7472
treeacf846229b674682b6dd0df1ad87e174e0295300
parent2ade28916d20cc8fae0dd25da58a75ad62487424
ata: pata_imx: Use devm_platform_get_and_ioremap_resource()

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/pata_imx.c