Commit de05065f authored by Dave Airlie's avatar Dave Airlie

drm/radeon/kms: fix nomodeset.

The ordering was wrong to get the nomodeset parameter to work.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6d0897ba
...@@ -318,6 +318,14 @@ static int __init radeon_init(void) ...@@ -318,6 +318,14 @@ static int __init radeon_init(void)
driver = &driver_old; driver = &driver_old;
driver->num_ioctls = radeon_max_ioctl; driver->num_ioctls = radeon_max_ioctl;
#if defined(CONFIG_DRM_RADEON_KMS) #if defined(CONFIG_DRM_RADEON_KMS)
#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && radeon_modeset == -1) {
DRM_INFO("VGACON disable radeon kernel modesetting.\n");
driver = &driver_old;
driver->driver_features &= ~DRIVER_MODESET;
radeon_modeset = 0;
}
#endif
/* if enabled by default */ /* if enabled by default */
if (radeon_modeset == -1) { if (radeon_modeset == -1) {
DRM_INFO("radeon default to kernel modesetting.\n"); DRM_INFO("radeon default to kernel modesetting.\n");
...@@ -329,17 +337,8 @@ static int __init radeon_init(void) ...@@ -329,17 +337,8 @@ static int __init radeon_init(void)
driver->driver_features |= DRIVER_MODESET; driver->driver_features |= DRIVER_MODESET;
driver->num_ioctls = radeon_max_kms_ioctl; driver->num_ioctls = radeon_max_kms_ioctl;
} }
/* if the vga console setting is enabled still /* if the vga console setting is enabled still
* let modprobe override it */ * let modprobe override it */
#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && radeon_modeset == -1) {
DRM_INFO("VGACON disable radeon kernel modesetting.\n");
driver = &driver_old;
driver->driver_features &= ~DRIVER_MODESET;
radeon_modeset = 0;
}
#endif
#endif #endif
return drm_init(driver); return drm_init(driver);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment