mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
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:
parent
58f44aadd3
commit
1900aba567
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user