With xe no longer building anything from soc/, we can remove the compat
platform checks from i915_drv.h, reducing the file to just the to_i915()
pointer conversion helper.

Signed-off-by: Jani Nikula <[email protected]>
---
 drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h 
b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
index 3e79a74ff7de..04d1925f9a19 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
@@ -19,19 +19,4 @@ static inline struct drm_i915_private *to_i915(const struct 
drm_device *dev)
        return container_of(dev, struct drm_i915_private, drm);
 }
 
-/* compat platform checks only for soc/ usage */
-#define IS_PLATFORM(xe, x) ((xe)->info.platform == x)
-#define IS_I915G(dev_priv)     (dev_priv && 0)
-#define IS_I915GM(dev_priv)    (dev_priv && 0)
-#define IS_PINEVIEW(dev_priv)  (dev_priv && 0)
-#define IS_VALLEYVIEW(dev_priv)        (dev_priv && 0)
-#define IS_CHERRYVIEW(dev_priv)        (dev_priv && 0)
-#define IS_HASWELL(dev_priv)   (dev_priv && 0)
-#define IS_BROADWELL(dev_priv) (dev_priv && 0)
-#define IS_BROXTON(dev_priv)   (dev_priv && 0)
-#define IS_GEMINILAKE(dev_priv)        (dev_priv && 0)
-#define IS_DG2(dev_priv)       IS_PLATFORM(dev_priv, XE_DG2)
-
-#define IS_MOBILE(xe) (xe && 0)
-
 #endif
-- 
2.47.3

Reply via email to