From: Mario Limonciello <mario.limoncie...@amd.com> As the driver uses drm_*() macros to print messages it's not necessary to include amdgpu a second time in all messages.
Signed-off-by: Mario Limonciello <mario.limoncie...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 12 ------------ drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index ffca74a476da9..f987e7f1a8650 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -28,18 +28,6 @@ #ifndef __AMDGPU_H__ #define __AMDGPU_H__ -#ifdef pr_fmt -#undef pr_fmt -#endif - -#define pr_fmt(fmt) "amdgpu: " fmt - -#ifdef dev_fmt -#undef dev_fmt -#endif - -#define dev_fmt(fmt) "amdgpu: " fmt - #include "amdgpu_ctx.h" #include <linux/atomic.h> diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h b/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h index cea65093b6ad8..9c849341f7cd8 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h @@ -28,7 +28,7 @@ #undef pr_fmt #endif -#define pr_fmt(fmt) "amdgpu: [powerplay] " fmt +#define pr_fmt(fmt) "[powerplay] " fmt #include <linux/types.h> #include <linux/kernel.h> -- 2.43.0