drm/sti: Use drm_fb_cma_fbdev_init/fini()
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 15 Nov 2017 14:19:51 +0000 (15:19 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Fri, 8 Dec 2017 13:47:41 +0000 (14:47 +0100)
commit53889c92fde989e71f5bd01b227d58cd92010128
treec2ce6b5e3f2fe8a8818a151bb4a5b501c29caf2f
parentd18df744de1a2823086486588e497aad68370de6
drm/sti: Use drm_fb_cma_fbdev_init/fini()

Use drm_fb_cma_fbdev_init() and drm_fb_cma_fbdev_fini() which relies on
the fact that drm_device holds a pointer to the drm_fb_helper structure.
This means that the driver doesn't have to keep track of that.
Also use the drm_fb_helper functions directly.

Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Vincent Abriou <vincent.abriou@st.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171115142001.45358-13-noralf@tronnes.org
drivers/gpu/drm/sti/sti_drv.c
drivers/gpu/drm/sti/sti_drv.h