ata: palmld: fix return value check in palmld_pata_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 29 Oct 2022 07:49:31 +0000 (15:49 +0800)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 31 Oct 2022 11:28:05 +0000 (20:28 +0900)
commit015618c3ec19584c83ff179fa631be8cec906aaf
tree9760b63ccc3a3aba4da3c363a1b951f8d834469c
parent171a93182eccd6e6835d2c86b40787f9f832efaa
ata: palmld: fix return value check in palmld_pata_probe()

If devm_platform_ioremap_resource() fails, it never return
NULL pointer, replace the check with IS_ERR().

Fixes: 57bf0f5a162d ("ARM: pxa: use pdev resource for palmld mmio")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_palmld.c