Skip to content

Commit

Permalink
drm/i915/pch: replace BUG_ON() with drm_WARN_ON()
Browse files Browse the repository at this point in the history
Avoid BUG_ON(). Replace with drm_WARN_ON().

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220830093411.1511040-3-jani.nikula@intel.com
  • Loading branch information
Jani Nikula committed Aug 31, 2022
1 parent b801a98 commit 8482af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/display/intel_pch_refclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 8482af4

Please sign in to comment.