aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-06-19 15:27:27 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-06-22 10:16:35 -0400
commitfd930478fb797e4cbaa799d9ddd970e9a1fa1b4a (patch)
treeab4bbbbb0f81d314d50b398865f8e98ca46ae5e3
parenteebaed646ab263cabcd19485e606e51c0bb11c5c (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_defconfig1
-rw-r--r--drivers/gpu/drm/i915/Kconfig9
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c20
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
207CONFIG_AGP_INTEL=y 207CONFIG_AGP_INTEL=y
208CONFIG_DRM=y 208CONFIG_DRM=y
209CONFIG_DRM_I915=y 209CONFIG_DRM_I915=y
210CONFIG_DRM_I915_KMS=y
211CONFIG_FB_MODE_HELPERS=y 210CONFIG_FB_MODE_HELPERS=y
212CONFIG_FB_TILEBLITTING=y 211CONFIG_FB_TILEBLITTING=y
213CONFIG_FB_EFI=y 212CONFIG_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
39config 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
48config DRM_I915_FBDEV 39config 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)