summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sun4i/sun4i_framebuffer.h
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-11-15 17:19:53 +0300
committerNoralf Trønnes <noralf@tronnes.org>2017-12-08 16:47:42 +0300
commit22efc85b6ca5c2df26fc6fcba1d049927f0a0557 (patch)
treea948e7b1c0169c7c1e0a13f1101044bd866ec90d /drivers/gpu/drm/sun4i/sun4i_framebuffer.h
parent068b393c1a13ec98b44224700939db023a6d34ac (diff)
downloadlinux-22efc85b6ca5c2df26fc6fcba1d049927f0a0557.tar.xz
drm/sun4i: 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: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171115142001.45358-15-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_framebuffer.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_framebuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_framebuffer.h b/drivers/gpu/drm/sun4i/sun4i_framebuffer.h
index 3afd65252ee0..7ef0aed8384c 100644
--- a/drivers/gpu/drm/sun4i/sun4i_framebuffer.h
+++ b/drivers/gpu/drm/sun4i/sun4i_framebuffer.h
@@ -13,7 +13,7 @@
#ifndef _SUN4I_FRAMEBUFFER_H_
#define _SUN4I_FRAMEBUFFER_H_
-struct drm_fbdev_cma *sun4i_framebuffer_init(struct drm_device *drm);
+int sun4i_framebuffer_init(struct drm_device *drm);
void sun4i_framebuffer_free(struct drm_device *drm);
#endif /* _SUN4I_FRAMEBUFFER_H_ */