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: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King 2015-07-15 18:11:24 +01:00
parent 66377efa3f
commit d563c24514

View File

@ -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, armada_drm_vbl_event_init(&dplane->vbl.update, armada_ovl_plane_vbl,
dplane); dplane);
drm_plane_init(dev, &dplane->base, crtcs, &armada_ovl_plane_funcs, ret = drm_universal_plane_init(dev, &dplane->base, crtcs,
armada_ovl_formats, ARRAY_SIZE(armada_ovl_formats), &armada_ovl_plane_funcs,
false); armada_ovl_formats,
ARRAY_SIZE(armada_ovl_formats),
DRM_PLANE_TYPE_OVERLAY);
if (ret) { if (ret) {
kfree(dplane); kfree(dplane);
return ret; return ret;