Skip to content

Commit

Permalink
drm/i915/display/icl_dsi: Prefer drm_WARN_ON over WARN_ON
Browse files Browse the repository at this point in the history
struct drm_device specific drm_WARN* macros include device information
in the backtrace, so we know what device the warnings originate from.

Prefer drm_WARN_ON over WARN_ON.

Signed-off-by: Pankaj Bharadiya <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
bpankajl authored and jnikula committed Apr 21, 2020
1 parent 11ebc23 commit 61198fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/display/icl_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ static void gen11_dsi_enable(struct intel_atomic_state *state,
{
struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);

WARN_ON(crtc_state->has_pch_encoder);
drm_WARN_ON(state->base.dev, crtc_state->has_pch_encoder);

/* step6d: enable dsi transcoder */
gen11_dsi_enable_transcoder(encoder);
Expand Down

0 comments on commit 61198fe

Please sign in to comment.