Skip to content

Commit

Permalink
drm/i915/stolen: prefer struct drm_device based logging
Browse files Browse the repository at this point in the history
Prefer struct drm_device based logging over struct device based logging.

No functional changes.

Cc: Wambui Karuga <[email protected]>
Reviewed-by: Wambui Karuga <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
jnikula committed Apr 8, 2020
1 parent 19b5b50 commit dd1ba6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/gem/i915_gem_stolen.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,14 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915)
mutex_init(&i915->mm.stolen_lock);

if (intel_vgpu_active(i915)) {
dev_notice(i915->drm.dev,
drm_notice(&i915->drm,
"%s, disabling use of stolen memory\n",
"iGVT-g active");
return 0;
}

if (intel_vtd_active() && INTEL_GEN(i915) < 8) {
dev_notice(i915->drm.dev,
drm_notice(&i915->drm,
"%s, disabling use of stolen memory\n",
"DMAR active");
return 0;
Expand Down

0 comments on commit dd1ba6b

Please sign in to comment.