]> Pileus Git - ~andy/linux/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)
commit5e1109adde6acd0f3424886da09402ac22ed244b
tree834319d549c6b41b94c3794366c028f435b15ba9
parent9a4864c897549e048b582372eca36e967b87784c
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