[Intel-gfx] [PATCH 3/5] drm/i915/pch: replace BUG_ON() with drm_WARN_ON()
Jani Nikula
jani.nikula at intel.com
Fri Aug 26 08:38:15 UTC 2022
Avoid BUG_ON(). Replace with drm_WARN_ON().
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/display/intel_pch_refclk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_pch_refclk.c b/drivers/gpu/drm/i915/display/intel_pch_refclk.c
index 9934c8a9e240..38608efd5749 100644
--- a/drivers/gpu/drm/i915/display/intel_pch_refclk.c
+++ b/drivers/gpu/drm/i915/display/intel_pch_refclk.c
@@ -654,7 +654,7 @@ static void ilk_init_pch_refclk(struct drm_i915_private *dev_priv)
}
}
- BUG_ON(val != final);
+ drm_WARN_ON(&dev_priv->drm, val != final);
}
/*
--
2.34.1
More information about the Intel-gfx
mailing list