drm/cma-helper: fixup compilation
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Feb 2013 10:18:04 +0000 (11:18 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 19 Feb 2013 22:42:24 +0000 (08:42 +1000)
commit8fcb6c4748822f8f594536e47b9b0701b6c33e7a
tree5ec9eeedab787615541f7d18b796752c5c6b6a93
parent8e26875e21f7b01787018cbc0faf8bd099599cdb
drm/cma-helper: fixup compilation

/me grabs a few brown paper bags

So it looks like I've broken compilation in

commit 6aed8ec3f76a22217c9ae183d32b1aa990bed069
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun Jan 20 17:32:21 2013 +0100

    drm: review locking for drm_fb_helper_restore_fbdev_mode

Fix it up again.

v2: Only deref fbdev_cma once we're sure it's non-NULL, noticed by
Thierry Reding.

Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_cma_helper.c