]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tve200: Use drm_fb_cma_fbdev_init/fini()
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 15 Nov 2017 14:19:55 +0000 (15:19 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Fri, 8 Dec 2017 13:47:42 +0000 (14:47 +0100)
commit8f3db3c7443cbb2c4e7f6093bac06a2e5f7ff5b1
treeed3097f6ec2f8fb064b383a588a926fb037a62f0
parentb0b3216bfca448cf856dc6e0784542c8f82d9eef
drm/tve200: 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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171115142001.45358-17-noralf@tronnes.org
drivers/gpu/drm/tve200/tve200_drm.h
drivers/gpu/drm/tve200/tve200_drv.c