diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-06-19 15:27:27 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-22 10:16:35 -0400 |
commit | fd930478fb797e4cbaa799d9ddd970e9a1fa1b4a (patch) | |
tree | ab4bbbbb0f81d314d50b398865f8e98ca46ae5e3 | |
parent | eebaed646ab263cabcd19485e606e51c0bb11c5c (diff) |
drm/i915: Remove KMS Kconfig option
Since we only support modesetting by default (disabling modesetting on
the command line prevents i915.ko from loading), having a parameter to
disable modesstting by default is superfluous, i.e. saying
CONFIG_DRM_I915_KMS=n is equivalent to CONFIG_DRM_I915=n.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Veter <daniel.vetter@ffwll.ch>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | arch/x86/configs/x86_64_defconfig | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/Kconfig | 9 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 20 |
3 files changed, 7 insertions, 23 deletions
diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig index 315b86106572..05630dfcb9f4 100644 --- a/arch/x86/configs/x86_64_defconfig +++ b/arch/x86/configs/x86_64_defconfig | |||
@@ -207,7 +207,6 @@ CONFIG_AGP_AMD64=y | |||
207 | CONFIG_AGP_INTEL=y | 207 | CONFIG_AGP_INTEL=y |
208 | CONFIG_DRM=y | 208 | CONFIG_DRM=y |
209 | CONFIG_DRM_I915=y | 209 | CONFIG_DRM_I915=y |
210 | CONFIG_DRM_I915_KMS=y | ||
211 | CONFIG_FB_MODE_HELPERS=y | 210 | CONFIG_FB_MODE_HELPERS=y |
212 | CONFIG_FB_TILEBLITTING=y | 211 | CONFIG_FB_TILEBLITTING=y |
213 | CONFIG_FB_EFI=y | 212 | CONFIG_FB_EFI=y |
diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index 74acca9bcd9d..eb87e2538861 100644 --- a/drivers/gpu/drm/i915/Kconfig +++ b/drivers/gpu/drm/i915/Kconfig | |||
@@ -36,15 +36,6 @@ config DRM_I915 | |||
36 | i810 driver instead, and the Atom z5xx series has an entirely | 36 | i810 driver instead, and the Atom z5xx series has an entirely |
37 | different implementation. | 37 | different implementation. |
38 | 38 | ||
39 | config DRM_I915_KMS | ||
40 | bool "Enable modesetting on intel by default" | ||
41 | depends on DRM_I915 | ||
42 | default y | ||
43 | help | ||
44 | Choose this option if you want kernel modesetting enabled by default. | ||
45 | |||
46 | If in doubt, say "Y". | ||
47 | |||
48 | config DRM_I915_FBDEV | 39 | config DRM_I915_FBDEV |
49 | bool "Enable legacy fbdev support for the modesetting intel driver" | 40 | bool "Enable legacy fbdev support for the modesetting intel driver" |
50 | depends on DRM_I915 | 41 | depends on DRM_I915 |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 0ec57bad454f..c69f19271e27 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -1710,20 +1710,14 @@ static int __init i915_init(void) | |||
1710 | driver.num_ioctls = i915_max_ioctl; | 1710 | driver.num_ioctls = i915_max_ioctl; |
1711 | 1711 | ||
1712 | /* | 1712 | /* |
1713 | * If CONFIG_DRM_I915_KMS is set, default to KMS unless | 1713 | * Enable KMS by default, unless explicitly overriden by |
1714 | * explicitly disabled with the module pararmeter. | 1714 | * either the i915.modeset prarameter or by the |
1715 | * | 1715 | * vga_text_mode_force boot option. |
1716 | * Otherwise, just follow the parameter (defaulting to off). | ||
1717 | * | ||
1718 | * Allow optional vga_text_mode_force boot option to override | ||
1719 | * the default behavior. | ||
1720 | */ | 1716 | */ |
1721 | #if defined(CONFIG_DRM_I915_KMS) | 1717 | driver.driver_features |= DRIVER_MODESET; |
1722 | if (i915.modeset != 0) | 1718 | |
1723 | driver.driver_features |= DRIVER_MODESET; | 1719 | if (i915.modeset == 0) |
1724 | #endif | 1720 | driver.driver_features &= ~DRIVER_MODESET; |
1725 | if (i915.modeset == 1) | ||
1726 | driver.driver_features |= DRIVER_MODESET; | ||
1727 | 1721 | ||
1728 | #ifdef CONFIG_VGA_CONSOLE | 1722 | #ifdef CONFIG_VGA_CONSOLE |
1729 | if (vgacon_text_force() && i915.modeset == -1) | 1723 | if (vgacon_text_force() && i915.modeset == -1) |