drm/i915/pmu: prefer struct drm_device based logging

Prefer struct drm_device based logging over struct device based logging.

No functional changes.

Cc: Wambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200402114819.17232-12-jani.nikula@intel.com
This commit is contained in:
Jani Nikula 2020-04-02 14:48:14 +03:00
parent 58f44aadd3
commit 1900aba567
1 changed files with 2 additions and 2 deletions

View File

@ -1115,7 +1115,7 @@ void i915_pmu_register(struct drm_i915_private *i915)
int ret = -ENOMEM;
if (INTEL_GEN(i915) <= 2) {
dev_info(i915->drm.dev, "PMU not supported for this GPU.");
drm_info(&i915->drm, "PMU not supported for this GPU.");
return;
}
@ -1178,7 +1178,7 @@ err_name:
if (!is_igp(i915))
kfree(pmu->name);
err:
dev_notice(i915->drm.dev, "Failed to register PMU!\n");
drm_notice(&i915->drm, "Failed to register PMU!\n");
}
void i915_pmu_unregister(struct drm_i915_private *i915)