From: Wei Yongjun Date: Wed, 18 Sep 2013 19:01:58 +0000 (-0700) Subject: ARM: OMAP: fix return value check in omap_device_build_from_dt() X-Git-Tag: omap-for-v3.12/fixes-signed~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf9cf8967f0316722c6cb4ebf8093b74a8e1dd6;p=pandora-kernel.git ARM: OMAP: fix return value check in omap_device_build_from_dt() In case of error, the function omap_device_alloc() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun Acked-by: Kevin Hilman Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed