]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: imx1: fix return value check in imx1_pinctrl_core_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 31 Oct 2013 07:51:18 +0000 (15:51 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Nov 2013 11:49:56 +0000 (12:49 +0100)
commitd8254cc89c8fd0dd4ab0e7797710ea9ee6f9b75b
tree834319d549c6b41b94c3794366c028f435b15ba9
parent10ac3bb91db24496493f3a596817853cd4bd541c
pinctrl: imx1: fix return value check in imx1_pinctrl_core_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-imx1-core.c