gpio: x-gene: fix devm_ioremap_resource() check
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 29 Mar 2015 02:37:20 +0000 (05:37 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Apr 2015 07:53:57 +0000 (09:53 +0200)
commit33c07b46774219ceaa2e6650413aa4d2cd6d6dd0
tree21cd7c318b1be036f285db95a0c50a2f3b0b0be7
parentcbfb3ea7f8c8da2e12d6d5aeca6d483de4297427
gpio: x-gene: fix devm_ioremap_resource() check

devm_ioremap_resource() returns IOMEM_ERR_PTR() and it never
returns NULL, fix the check to prevent access to invalid
virtual address.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xgene-sb.c