drm/imx: drm_dev_alloc() returns error pointers
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2016 08:53:21 +0000 (11:53 +0300)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Oct 2016 09:02:11 +0000 (11:02 +0200)
commit8cca354816adacb91280e19c50f81ffddc0460a4
tree51c4569aaee015789117452321a45574108ece14
parent81d553545a1510ff7c7c00cbc9b57d6172d411a4
drm/imx: drm_dev_alloc() returns error pointers

We are checking for NULL here, when we should be checking for error
pointers.

Fixes: 54db5decce17 ("drm/imx: drop deprecated load/unload drm_driver ops")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c