diff options
author | Jani Nikula <jani.nikula@intel.com> | 2020-04-02 13:48:14 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-04-08 12:49:35 +0200 |
commit | 1900aba56787d85616bcbe0ebd4c6efd38a226c1 (patch) | |
tree | 1cd73df74d1c86c5df53b7b4446736d7d5dd2d27 /drivers/gpu/drm/i915/i915_pmu.c | |
parent | drm/i915/error: prefer struct drm_device based logging (diff) | |
download | linux-1900aba56787d85616bcbe0ebd4c6efd38a226c1.tar.xz linux-1900aba56787d85616bcbe0ebd4c6efd38a226c1.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_pmu.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu.c index 2c062534eac1..230e9256ab30 100644 --- a/drivers/gpu/drm/i915/i915_pmu.c +++ b/drivers/gpu/drm/i915/i915_pmu.c @@ -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) |