drm/i915: convert to new logging macros in i915/intel_memory_region.c
authorWambui Karuga <wambui.karugax@gmail.com>
Thu, 9 Jan 2020 09:06:46 +0000 (12:06 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 17 Jan 2020 15:44:19 +0000 (17:44 +0200)
Replace the use of printk based logging macros with the new struct
drm_device based logging macro in i915/intel_memory_region.c.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1bf4d362e72c619843d44aac96c3561f54e4b23a.1578560355.git.wambui.karugax@gmail.com
drivers/gpu/drm/i915/intel_memory_region.c

index d0d038b3cd79c1cc948f437797de0aa281da2af4..6b5e9d88646de4aa683b8a004517b93954420362 100644 (file)
@@ -265,7 +265,9 @@ int intel_memory_regions_hw_probe(struct drm_i915_private *i915)
 
                if (IS_ERR(mem)) {
                        err = PTR_ERR(mem);
-                       DRM_ERROR("Failed to setup region(%d) type=%d\n", err, type);
+                       drm_err(&i915->drm,
+                               "Failed to setup region(%d) type=%d\n",
+                               err, type);
                        goto out_cleanup;
                }