diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-10-25 18:58:00 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-10-31 16:56:32 +0200 |
commit | 33edc24d12c42710e23f1c2cef434937af73e245 (patch) | |
tree | eb2dc1496a42bd9b50b56d4df1fbbaa70df47129 /drivers/gpu/drm/i915/intel_sprite.c | |
parent | 7b7a119e8546e27227a7969883a3c34ed7dbb0cf (diff) | |
download | op-kernel-dev-33edc24d12c42710e23f1c2cef434937af73e245.zip op-kernel-dev-33edc24d12c42710e23f1c2cef434937af73e245.tar.gz |
drm/i915: Don't try to initialize sprite planes on pre-ilk
We don't currently implement support for sprite planes on pre-ilk
platforms, so let's leave num_sprites at 0 so that we don't get
spurious errors during driver init.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1477411083-19255-2-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sprite.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 43d0350..ae1e3d4 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -1054,9 +1054,6 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe, int plane) int num_plane_formats; int ret; - if (INTEL_INFO(dev)->gen < 5) - return -ENODEV; - intel_plane = kzalloc(sizeof(*intel_plane), GFP_KERNEL); if (!intel_plane) { ret = -ENOMEM; |