From: Wei Yongjun Date: Wed, 30 Oct 2013 03:15:51 +0000 (+0800) Subject: staging: drm/imx: fix return value check in ipu_add_subdevice_pdata() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed5d6ca0038f274aada1244358ad89b7941bdcbf;p=pandora-kernel.git staging: drm/imx: fix return value check in ipu_add_subdevice_pdata() In case of error, the function platform_device_register_data() 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed