[Intel-gfx] [PATCH 11/17] drm/i915/error: prefer struct drm_device based logging
Wambui Karuga
wambui.karugax at gmail.com
Wed Apr 8 08:31:57 UTC 2020
On Thu, 2 Apr 2020, Jani Nikula wrote:
> Prefer struct drm_device based logging over struct device based logging.
>
> No functional changes.
>
> Cc: Wambui Karuga <wambui.karugax at gmail.com>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
Reviewed-by: Wambui Karuga <wambui.karugax at gmail.com>
> ---
> drivers/gpu/drm/i915/i915_gpu_error.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
> index 2a4cd0ba5464..424ad975a360 100644
> --- a/drivers/gpu/drm/i915/i915_gpu_error.c
> +++ b/drivers/gpu/drm/i915/i915_gpu_error.c
> @@ -1858,7 +1858,7 @@ void i915_error_state_store(struct i915_gpu_coredump *error)
> return;
>
> i915 = error->i915;
> - dev_info(i915->drm.dev, "%s\n", error_msg(error));
> + drm_info(&i915->drm, "%s\n", error_msg(error));
>
> if (error->simulated ||
> cmpxchg(&i915->gpu_error.first_error, NULL, error))
> --
> 2.20.1
>
>
More information about the Intel-gfx
mailing list