ata: pata_imx: fix devm_ioremap_resource() return value checking
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 14 Mar 2014 17:33:13 +0000 (18:33 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 14 Mar 2014 18:30:28 +0000 (14:30 -0400)
commit13e8e78bdd148f615da1e5d1edcf0b58b7c2b684
treeaed7fd5407275e4ece45234022f9441f590601f4
parentb032378b4c3ffba86d2c78699b385ae646397938
ata: pata_imx: fix devm_ioremap_resource() return value checking

devm_ioremap_resource() returns a pointer to the remapped memory or
an ERR_PTR() encoded error code on failure.  Fix the check inside
pata_imx_probe() accordingly.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_imx.c