summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-13 12:14:12 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-08-13 14:23:39 +0200
commit7312e2ddec1ffe4511a85a2814df44e79ded3c1d (patch)
tree60053a9aeb5b3a424c2a377b3c63a27d1d524069 /drivers/gpu/drm/i915/i915_dma.c
parentdc41c154ffc30afb7ee7e891140dead26fce5c39 (diff)
downloadblackbird-op-linux-7312e2ddec1ffe4511a85a2814df44e79ded3c1d.tar.gz
blackbird-op-linux-7312e2ddec1ffe4511a85a2814df44e79ded3c1d.zip
drm/i915: Replace __I915__ with typesafe variant
Ville pointed out the GCCism __builtin_types_compatible_p() that we could use to replace our heavily casted presumption __I915__ macro that was based on comparing struct sizes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 04dd6112865e..db56b26a08c9 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1595,9 +1595,6 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
if (!drm_core_check_feature(dev, DRIVER_MODESET) && !dev->agp)
return -EINVAL;
- /* For the ugly agnostic INTEL_INFO macro */
- BUILD_BUG_ON(sizeof(*dev_priv) == sizeof(*dev));
-
dev_priv = kzalloc(sizeof(*dev_priv), GFP_KERNEL);
if (dev_priv == NULL)
return -ENOMEM;
OpenPOWER on IntegriCloud