drm/fb_cma_helper: do not free fbdev if there is none
authorStefan Agner <stefan@agner.ch>
Thu, 20 Oct 2016 00:32:19 +0000 (17:32 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Oct 2016 07:05:34 +0000 (09:05 +0200)
commit41b9bb1b3be4cf6b9c28bbe1223744de48bf25c0
tree47ff0a54a7b186c73327810075cef17ac16c7492
parente3f56b2953ec8160629295bc2be0c8d3b8f4d1d3
drm/fb_cma_helper: do not free fbdev if there is none

If fbdev emulation is not in use (or not built-in), fb_helper.fbdev
is NULL. Don't call calling drm_fbdev_cma_defio_fini in this case.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161020003221.2941-2-stefan@agner.ch
drivers/gpu/drm/drm_fb_cma_helper.c