]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: tb10x: fix the error handling in tb10x_pinctrl_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 21 Oct 2013 02:55:29 +0000 (10:55 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Oct 2013 08:41:22 +0000 (10:41 +0200)
commit76617523b1802eb56b89c3808f39a25e1880dca3
tree7a54fc2c24f30699fb4b691025bc7defd6a52870
parenta34442ef14297ad9d688cc6a5bc535e1d7193fd6
pinctrl: tb10x: fix the error handling in tb10x_pinctrl_probe()

This patch fix the error handling in tb10x_pinctrl_probe():
 - devm_ioremap_resource() return ERR_PTR() and never return NULL
 - remove the dev_err call to avoid redundant error message
 - pinctrl_register() returns NULL not ERR_PTR()

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