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
Родитель 66377efa3f
Коммит d563c24514
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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;