projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_kms.c
b/drivers/gpu/drm/qxl/qxl_kms.c
index 2319800b7addc5af25cda7d33a5f186d7ea4c69a..12b8dff9dc8c3f62e9b2e248de3c0cc45766dd98 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;