From 2eaaccdeabf34ad70ecb7eb9c4aafa08b13a0e66 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Fri, 25 Oct 2013 17:07:18 +0800 Subject: [PATCH] staging: drm/imx: fix return value check in imx_drm_init() In case of error, the function platform_device_register_simple() 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: Sascha Hauer Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed