]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: Fix return value check in amd_gpio_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 6 Feb 2016 14:56:36 +0000 (22:56 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 18:42:41 +0000 (19:42 +0100)
commit0883e5ca3a17100bade5caccd74e703648e4da42
tree292a3a6dcc74f9bf62f81dc5d3afa7fe4a18a649
parenta4a482440394b53ca3533511ac80575ea066e68b
pinctrl: Fix return value check in amd_gpio_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-amd.c