aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <[email protected]>2021-11-12 13:32:25 +0000
committerJavier Martinez Canillas <[email protected]>2021-11-27 12:52:16 +0000
commit35f7775f81bf8147b5b8b11958e15c0cc364b7c0 (patch)
tree931ae4076465bcde02fe20b80a6124da371ab071 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm: get rid of DRM_DEBUG_* log calls in drm core, files drm_a*.c (diff)
downloadkernel-35f7775f81bf8147b5b8b11958e15c0cc364b7c0.tar.gz
kernel-35f7775f81bf8147b5b8b11958e15c0cc364b7c0.zip
drm: Don't print messages if drivers are disabled due nomodeset
The nomodeset kernel parameter handler already prints a message that the DRM drivers will be disabled, so there's no need for drivers to do that. Suggested-by: Thomas Zimmermann <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Acked-by: Thomas Zimmermann <[email protected]> Acked-by: Jani Nikula <[email protected]> Acked-by: Pekka Paalanen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index ad95de6399af..e8c23e37c83c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -2516,10 +2516,8 @@ static int __init amdgpu_init(void)
{
int r;
- if (vgacon_text_force()) {
- DRM_ERROR("VGACON disables amdgpu kernel modesetting.\n");
+ if (vgacon_text_force())
return -EINVAL;
- }
r = amdgpu_sync_init();
if (r)