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 <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>

Reviewed-by: Wambui Karuga <[email protected]>

---
drivers/gpu/drm/i915/gt/uc/intel_uc.c    | 12 ++++++------
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c 
b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
index b11e564ef22e..4681cdd24da4 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
@@ -45,12 +45,12 @@ static void __confirm_options(struct intel_uc *uc)
{
        struct drm_i915_private *i915 = uc_to_gt(uc)->i915;

-       DRM_DEV_DEBUG_DRIVER(i915->drm.dev,
-                            "enable_guc=%d (guc:%s submission:%s huc:%s)\n",
-                            i915_modparams.enable_guc,
-                            yesno(intel_uc_wants_guc(uc)),
-                            yesno(intel_uc_wants_guc_submission(uc)),
-                            yesno(intel_uc_wants_huc(uc)));
+       drm_dbg(&i915->drm,
+               "enable_guc=%d (guc:%s submission:%s huc:%s)\n",
+               i915_modparams.enable_guc,
+               yesno(intel_uc_wants_guc(uc)),
+               yesno(intel_uc_wants_guc_submission(uc)),
+               yesno(intel_uc_wants_huc(uc)));

        if (i915_modparams.enable_guc == -1)
                return;
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c 
b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
index fa893dd1823c..129db476f69e 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
@@ -32,11 +32,11 @@ void intel_uc_fw_change_status(struct intel_uc_fw *uc_fw,
                               enum intel_uc_fw_status status)
{
        uc_fw->__status =  status;
-       DRM_DEV_DEBUG_DRIVER(__uc_fw_to_gt(uc_fw)->i915->drm.dev,
-                            "%s firmware -> %s\n",
-                            intel_uc_fw_type_repr(uc_fw->type),
-                            status == INTEL_UC_FIRMWARE_SELECTED ?
-                            uc_fw->path : intel_uc_fw_status_repr(status));
+       drm_dbg(&__uc_fw_to_gt(uc_fw)->i915->drm,
+               "%s firmware -> %s\n",
+               intel_uc_fw_type_repr(uc_fw->type),
+               status == INTEL_UC_FIRMWARE_SELECTED ?
+               uc_fw->path : intel_uc_fw_status_repr(status));
}
#endif

--
2.20.1


_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to