drm/arm/hdlcd: Use drm_fb_cma_fbdev_init/fini()
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 8 Dec 2017 19:37:35 +0000 (20:37 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 31 Jul 2018 15:31:50 +0000 (16:31 +0100)
commit1785dbc412c257879274e8807afd6dfdfe06c47b
treea668d29c7929cef45599bbfbda1aee95dad41f12
parent5c7e5a22c126e4d7839e6bdcc05b3c4dfa945a72
drm/arm/hdlcd: 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: Liviu Dudau <liviu.dudau@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_drv.c
drivers/gpu/drm/arm/hdlcd_drv.h