ata: pata_platform: Make use of platform_get_mem_or_io()
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 17 Jan 2022 02:01:34 +0000 (02:01 +0000)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 31 Jan 2022 00:58:31 +0000 (09:58 +0900)
commit8818a5342cb499b6959e821bf64c854e6a06bc82
tree580bdd6e25f8f05d0903c34a238d9468038c6bfd
parent26291c54e111ff6ba87a164d85d4a4e134b7315c
ata: pata_platform: Make use of platform_get_mem_or_io()

Make use of platform_get_mem_or_io() to simplify the code.

While at it, drop use of unlikely() from pata_platform_probe()
as it isn't a hotpath.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_platform.c