From: Wei Yongjun Date: Fri, 21 Sep 2012 06:32:04 +0000 (+0800) Subject: ARM: OMAP: omap_device: fix return value check in omap_device_build_ss() X-Git-Tag: omap-for-v3.7-rc1/fixes-pm-signed^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a87e662827bca4b10a320e62da3fb21826eab987;p=pandora-kernel.git ARM: OMAP: omap_device: fix return value check in omap_device_build_ss() In case of error, the function omap_device_alloc() returns ERR_PTR() and never returns NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed