Commit 1e6850ee authored by Pankaj Bharadiya's avatar Pankaj Bharadiya Committed by Jani Nikula

drm/i915/display/atomic_plane: Prefer drm_WARN_ON over WARN_ON

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: default avatarPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200406112800.23762-3-pankaj.laxminarayan.bharadiya@intel.com
parent 61198fe1
...@@ -125,7 +125,7 @@ intel_plane_destroy_state(struct drm_plane *plane, ...@@ -125,7 +125,7 @@ intel_plane_destroy_state(struct drm_plane *plane,
struct drm_plane_state *state) struct drm_plane_state *state)
{ {
struct intel_plane_state *plane_state = to_intel_plane_state(state); struct intel_plane_state *plane_state = to_intel_plane_state(state);
WARN_ON(plane_state->vma); drm_WARN_ON(plane->dev, plane_state->vma);
__drm_atomic_helper_plane_destroy_state(&plane_state->uapi); __drm_atomic_helper_plane_destroy_state(&plane_state->uapi);
if (plane_state->hw.fb) if (plane_state->hw.fb)
...@@ -396,7 +396,7 @@ skl_next_plane_to_commit(struct intel_atomic_state *state, ...@@ -396,7 +396,7 @@ skl_next_plane_to_commit(struct intel_atomic_state *state,
} }
/* should never happen */ /* should never happen */
WARN_ON(1); drm_WARN_ON(state->base.dev, 1);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment