OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d02c4a
)
drm/qxl: Remove dead code
author
Thierry Reding
<treding@nvidia.com>
Fri, 24 Jun 2016 17:15:18 +0000
(18:15 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 11:09:20 +0000
(13:09 +0200)
The QXL driver sets DRIVER_MODESET unconditionally, so testing for the
absence of the feature will always fail.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
http://patchwork.freedesktop.org/patch/msgid/1466788520-21325-5-git-send-email-frank.binns@imgtec.com
drivers/gpu/drm/qxl/qxl_kms.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_kms.c
b/drivers/gpu/drm/qxl/qxl_kms.c
index
2319800
..
12b8dff
100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_kms.c
+++ b/
drivers/gpu/drm/qxl/qxl_kms.c
@@
-310,10
+310,6
@@
int qxl_driver_load(struct drm_device *dev, unsigned long flags)
struct qxl_device *qdev;
int r;
- /* require kms */
- if (!drm_core_check_feature(dev, DRIVER_MODESET))
- return -ENODEV;
-
qdev = kzalloc(sizeof(struct qxl_device), GFP_KERNEL);
if (qdev == NULL)
return -ENOMEM;