drm/zte: Use drm_fb_cma_fbdev_init/fini()
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 15 Nov 2017 14:19:57 +0000 (15:19 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Fri, 8 Dec 2017 13:47:43 +0000 (14:47 +0100)
commitf05682a8b4ab4f854a358c25fb1220ed51161527
tree42296fe8590b439334ed97fa6aaa2efcd6d749b9
parentb8f429a77f6ece525ecf180a6df50357b86b96a6
drm/zte: 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: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171115142001.45358-19-noralf@tronnes.org
drivers/gpu/drm/zte/zx_drm_drv.c