diff options
author | Andreas Ruprecht <rupran@einserver.de> | 2015-02-06 05:16:47 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-13 17:28:40 -0500 |
commit | cd5956c9136d80ca09faacf9622dc68426bec98c (patch) | |
tree | 3563d7e2bea42de46036dd94a39144b84cf30cd6 /drivers/gpu | |
parent | a86eb582e3863daa00f6f60355d7fb91252d0e43 (diff) |
drm/i915: Remove references to previously removed UMS config option
Commit 03dae59c72ffffd8 ("drm/i915: Ditch UMS config option") removed
CONFIG_DRM_I915_UMS from the Kconfig file, but i915_drv.c still
references this option in two #ifndef statements.
As an undefined config option will always be 'false', we can drop
the #ifndefs alltogether and adapt the printed error message.
This inconsistency was found with the undertaker tool.
Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
[danvet: Undo logging change as requested by Jani.]
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 84a303152c91..ba6862f5b6b2 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -1651,11 +1651,9 @@ static int __init i915_init(void) | |||
1651 | 1651 | ||
1652 | if (!(driver.driver_features & DRIVER_MODESET)) { | 1652 | if (!(driver.driver_features & DRIVER_MODESET)) { |
1653 | driver.get_vblank_timestamp = NULL; | 1653 | driver.get_vblank_timestamp = NULL; |
1654 | #ifndef CONFIG_DRM_I915_UMS | ||
1655 | /* Silently fail loading to not upset userspace. */ | 1654 | /* Silently fail loading to not upset userspace. */ |
1656 | DRM_DEBUG_DRIVER("KMS and UMS disabled.\n"); | 1655 | DRM_DEBUG_DRIVER("KMS and UMS disabled.\n"); |
1657 | return 0; | 1656 | return 0; |
1658 | #endif | ||
1659 | } | 1657 | } |
1660 | 1658 | ||
1661 | /* | 1659 | /* |
@@ -1671,10 +1669,8 @@ static int __init i915_init(void) | |||
1671 | 1669 | ||
1672 | static void __exit i915_exit(void) | 1670 | static void __exit i915_exit(void) |
1673 | { | 1671 | { |
1674 | #ifndef CONFIG_DRM_I915_UMS | ||
1675 | if (!(driver.driver_features & DRIVER_MODESET)) | 1672 | if (!(driver.driver_features & DRIVER_MODESET)) |
1676 | return; /* Never loaded a driver. */ | 1673 | return; /* Never loaded a driver. */ |
1677 | #endif | ||
1678 | 1674 | ||
1679 | drm_pci_exit(&driver, &i915_pci_driver); | 1675 | drm_pci_exit(&driver, &i915_pci_driver); |
1680 | } | 1676 | } |