aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_plane_helper.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
index 6d133149cc74..827ec1a3040b 100644
--- a/drivers/gpu/drm/drm_plane_helper.c
+++ b/drivers/gpu/drm/drm_plane_helper.c
@@ -335,9 +335,10 @@ struct drm_plane *drm_primary_helper_create_plane(struct drm_device *dev,
335 } 335 }
336 336
337 /* possible_crtc's will be filled in later by crtc_init */ 337 /* possible_crtc's will be filled in later by crtc_init */
338 ret = drm_plane_init(dev, primary, 0, &drm_primary_helper_funcs, 338 ret = drm_universal_plane_init(dev, primary, 0,
339 formats, num_formats, 339 &drm_primary_helper_funcs,
340 DRM_PLANE_TYPE_PRIMARY); 340 formats, num_formats,
341 DRM_PLANE_TYPE_PRIMARY);
341 if (ret) { 342 if (ret) {
342 kfree(primary); 343 kfree(primary);
343 primary = NULL; 344 primary = NULL;