[Intel-xe] [PATCH 12/21] fixup! drm/i915/display: Remaining changes to make xe compile

Jani Nikula jani.nikula at intel.com
Wed Apr 5 15:39:11 UTC 2023


intel_pch_refclk.h ifdef cleanup

To be replaced with better conditional build.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drivers/gpu/drm/i915/display/intel_pch_refclk.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_pch_refclk.h b/drivers/gpu/drm/i915/display/intel_pch_refclk.h
index aa4f6e0b1127..9bcf56629f24 100644
--- a/drivers/gpu/drm/i915/display/intel_pch_refclk.h
+++ b/drivers/gpu/drm/i915/display/intel_pch_refclk.h
@@ -11,7 +11,6 @@
 struct drm_i915_private;
 struct intel_crtc_state;
 
-#ifdef I915
 void lpt_program_iclkip(const struct intel_crtc_state *crtc_state);
 void lpt_disable_iclkip(struct drm_i915_private *dev_priv);
 int lpt_get_iclkip(struct drm_i915_private *dev_priv);
@@ -19,12 +18,5 @@ int lpt_iclkip(const struct intel_crtc_state *crtc_state);
 
 void intel_init_pch_refclk(struct drm_i915_private *dev_priv);
 void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv);
-#else
-#define lpt_program_iclkip(cstate) do { } while (0)
-#define lpt_disable_iclkip(xe) do { } while (0)
-#define lpt_get_iclkip(xe) (WARN_ON(-ENODEV))
-#define intel_init_pch_refclk(xe) do { } while (0)
-#define lpt_disable_clkout_dp(xe) do { } while (0)
-#endif
 
 #endif
-- 
2.39.2



More information about the Intel-xe mailing list