drm/imx: Use drm_fb_cma_fbdev_init/fini()
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 15 Nov 2017 14:19:46 +0000 (15:19 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Fri, 8 Dec 2017 13:47:40 +0000 (14:47 +0100)
commitb2ad94721047c0f047f36c172d68fed93a8f3fcd
tree2f2dca04f53153111af7c8ece4627ddb11f15bc2
parentce4eb35bfa4034f3076f71666e869cd729e3d0e4
drm/imx: 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: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20171115142001.45358-8-noralf@tronnes.org
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/imx-drm.h