gpio: iop: fix devm_ioremap_resource() return value checking
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 18 Mar 2014 09:58:33 +0000 (10:58 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 26 Mar 2014 09:31:34 +0000 (10:31 +0100)
commit138d876e30353da34495e463d20c9bd7c0fd4ba0
treeda3b60aef7e3a613a641751f52be3948aef29a3d
parent523dcce72c72e829b9d391f8020277038c6aab82
gpio: iop: 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
iop3xx_gpio_probe() accordingly.

Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-iop.c