From: Wei Yongjun Date: Wed, 30 Oct 2013 03:09:15 +0000 (+0800) Subject: gpio: tb10x: fix return value check in tb10x_gpio_probe() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~13^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a4864c897549e048b582372eca36e967b87784c;p=pandora-kernel.git gpio: tb10x: fix return value check in tb10x_gpio_probe() In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Also remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun Signed-off-by: Linus Walleij --- Reading git-diff-tree failed