Commit d563c245 authored by Russell King's avatar Russell King

drm/armada: update armada overlay to use drm_universal_plane_init()

Use the new drm_universal_plane_init() rather than the legacy
drm_plane_init().
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 66377efa
......@@ -461,9 +461,11 @@ int armada_overlay_plane_create(struct drm_device *dev, unsigned long crtcs)
armada_drm_vbl_event_init(&dplane->vbl.update, armada_ovl_plane_vbl,
dplane);
drm_plane_init(dev, &dplane->base, crtcs, &armada_ovl_plane_funcs,
armada_ovl_formats, ARRAY_SIZE(armada_ovl_formats),
false);
ret = drm_universal_plane_init(dev, &dplane->base, crtcs,
&armada_ovl_plane_funcs,
armada_ovl_formats,
ARRAY_SIZE(armada_ovl_formats),
DRM_PLANE_TYPE_OVERLAY);
if (ret) {
kfree(dplane);
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment