mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 05:36:42 +07:00
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:
parent
66377efa3f
commit
d563c24514
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user