Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d563c245 authored by Russell King's avatar Russell King
Browse files

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
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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;