drm/fb-helper: Set/clear dev->fb_helper in dummy init/fini
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 15 Dec 2017 17:51:13 +0000 (18:51 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 20 Dec 2017 13:50:19 +0000 (14:50 +0100)
commita65eb01ffcc50b42d1e4ea2e79c274e7f7a240c6
treee67f9e3741bad8d02eccdb8b59fde4ed16b76905
parenteb393dbc8f5b2ca7c87749795fd49b8cf77ab04b
drm/fb-helper: Set/clear dev->fb_helper in dummy init/fini

Set dev->fb_helper even when fbdev emulation is compiled out,
so drivers can use it to free the structure.
Clear it for consistency.

Fixes: 29ad20b22c8f ("drm: Add drm_device->fb_helper pointer")
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171215175119.36181-2-noralf@tronnes.org
include/drm/drm_fb_helper.h