diff options
author | Derek Foreman <derek.foreman@collabora.co.uk> | 2014-09-03 09:38:20 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-03 09:43:47 -0400 |
commit | 8fe8a3feeb5aedd17f7b09e51b60b38a6ba7005f (patch) | |
tree | 1328be2b1645782c2b4d609f65589455a5deb078 | |
parent | 55522f37817728eff26a75a64c60f07580efa66b (diff) |
drm/i915: init sprites with univeral plane init function
Really just for completeness - old init function ends up making the plane
exactly the same way due to the way the enums are set up.
Signed-off-by: Derek Foreman <derek.foreman@collabora.co.uk>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_sprite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index cf596cdca8e0..07a74ef589bd 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c | |||
@@ -1378,10 +1378,10 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe, int plane) | |||
1378 | intel_plane->plane = plane; | 1378 | intel_plane->plane = plane; |
1379 | intel_plane->rotation = BIT(DRM_ROTATE_0); | 1379 | intel_plane->rotation = BIT(DRM_ROTATE_0); |
1380 | possible_crtcs = (1 << pipe); | 1380 | possible_crtcs = (1 << pipe); |
1381 | ret = drm_plane_init(dev, &intel_plane->base, possible_crtcs, | 1381 | ret = drm_universal_plane_init(dev, &intel_plane->base, possible_crtcs, |
1382 | &intel_plane_funcs, | 1382 | &intel_plane_funcs, |
1383 | plane_formats, num_plane_formats, | 1383 | plane_formats, num_plane_formats, |
1384 | false); | 1384 | DRM_PLANE_TYPE_OVERLAY); |
1385 | if (ret) { | 1385 | if (ret) { |
1386 | kfree(intel_plane); | 1386 | kfree(intel_plane); |
1387 | goto out; | 1387 | goto out; |