Re: [Intel-gfx] [PATCH 14/17] drm/i915/uncore: prefer struct drm_device based logging

2020-04-08 Thread Wambui Karuga




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 
Signed-off-by: Jani Nikula 


Reviewed-by: Wambui Karuga 


---
drivers/gpu/drm/i915/intel_uncore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_uncore.c 
b/drivers/gpu/drm/i915/intel_uncore.c
index 013312e9b55c..fa86b7ab2d99 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -665,7 +665,7 @@ void intel_uncore_forcewake_user_put(struct intel_uncore 
*uncore)
mmio_debug_resume(uncore->debug);

if (check_for_unclaimed_mmio(uncore))
-   dev_info(uncore->i915->drm.dev,
+   drm_info(&uncore->i915->drm,
 "Invalid mmio detected during user access\n");
spin_unlock(&uncore->debug->lock);

--
2.20.1



___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx


[Intel-gfx] [PATCH 14/17] drm/i915/uncore: prefer struct drm_device based logging

2020-04-02 Thread Jani Nikula
Prefer struct drm_device based logging over struct device based logging.

No functional changes.

Cc: Wambui Karuga 
Signed-off-by: Jani Nikula 
---
 drivers/gpu/drm/i915/intel_uncore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_uncore.c 
b/drivers/gpu/drm/i915/intel_uncore.c
index 013312e9b55c..fa86b7ab2d99 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -665,7 +665,7 @@ void intel_uncore_forcewake_user_put(struct intel_uncore 
*uncore)
mmio_debug_resume(uncore->debug);
 
if (check_for_unclaimed_mmio(uncore))
-   dev_info(uncore->i915->drm.dev,
+   drm_info(&uncore->i915->drm,
 "Invalid mmio detected during user access\n");
spin_unlock(&uncore->debug->lock);
 
-- 
2.20.1

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx