Skip to contentSkip to conversation

drm/amd/display: Fix drm_err argument type error

PATCH In review chengjya 2 participants 2 messages Apr 9, 2025

Subsystems (3)
lore
Share & tools
lore

chengjya

author
#0 lore raw

PATCH 1/1 drm/amd/display: Fix drm_err argument type error

The drm_err function expects a struct drm_device * pointer, so fix it.

Fixes af632d3f59e6 ("drm/amd/display: HDCP Locality check using DMUB Fused IO")
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 5e6fdb0066b0..60d10d8cdf59 100755
@@ -2300,7 +2300,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
 		if (!register_dmub_notify_callback(adev, DMUB_NOTIFICATION_FUSED_IO,
 			dmub_aux_fused_io_callback, false)) {
-			drm_err(adev, "amdgpu: fail to register dmub fused io callback");
+			drm_err(adev_to_drm(adev), "amdgpu: fail to register dmub fused io callback");
 			goto error;
 		}
 		/* Enable outbox notification only after IRQ handlers are registered and DMUB is alive.
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

[Public]

Please fix your authorship format as "First_name Last_name <[email protected]>" before merge.

Thanks,
Roman

Quoted 40 lines

-----Original Message-----
From: chengjya <[email protected]>
Sent: Wednesday, April 9, 2025 5:17 AM
To: Li, Roman <[email protected]>; [email protected]; Kaszewski, Dominik <[email protected]>; Wheeler, Daniel <[email protected]>; Lee, Alvin <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Zhou, Bob <[email protected]>; Yao, Chengjun <[email protected]>
Subject: [PATCH] drm/amd/display: Fix drm_err argument type error

The drm_err function expects a struct drm_device * pointer, so fix it.

Fixes af632d3f59e6 ("drm/amd/display: HDCP Locality check using DMUB Fused

IO")

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 5e6fdb0066b0..60d10d8cdf59 100755
@@ -2300,7 +2300,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
              if (!register_dmub_notify_callback(adev,
 DMUB_NOTIFICATION_FUSED_IO,
                      dmub_aux_fused_io_callback, false)) {
-                     drm_err(adev, "amdgpu: fail to register dmub fused io
 callback");
+                     drm_err(adev_to_drm(adev), "amdgpu: fail to register dmub
 fused io callback");
                      goto error;
              }
              /* Enable outbox notification only after IRQ handlers are registered

and DMUB is alive.
--
2.43.0