]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: artpec6: Fix return value check in artpec6_pmx_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Apr 2017 11:29:30 +0000 (11:29 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Apr 2017 07:40:52 +0000 (09:40 +0200)
commit4ce8f20fc75357026a805eb7ed7a940e78c7cca8
treeffda4a5cc7f3ab763eecef87531f95922963cf6d
parente4d940afdf751a0b86f67ea4a7f118e27cf4e46f
pinctrl: artpec6: Fix return value check in artpec6_pmx_probe()

In case of error, the function pinctrl_register() returns
ERR_PTR() not 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: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-artpec6.c