]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: aspeed: fix return value check in aspeed_gpio_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 01:30:32 +0000 (01:30 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Sep 2016 12:23:40 +0000 (14:23 +0200)
commit7417551e33e441d405db3add3369598b45d886ad
tree62102f1ec1cdeef6881a5125c1b9865a5cc9339c
parent82f52a23189069d3bebeace052beea82a084e29c
gpio: aspeed: fix return value check in aspeed_gpio_probe()

In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c