projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73bf1b7
)
drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers
author
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Thu, 13 Aug 2015 20:06:39 +0000
(17:06 -0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 11:45:46 +0000
(13:45 +0200)
Legacy s/r hooks are only used for shadow-attaching drivers, warn
when a KMS driver tries to use them.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_drv.c
b/drivers/gpu/drm/drm_drv.c
index 53d09a19f7e13cb8c138f97da613df42e7170491..dc93c881f29d2a664b81430e189924e397337f03 100644
(file)
--- a/
drivers/gpu/drm/drm_drv.c
+++ b/
drivers/gpu/drm/drm_drv.c
@@
-566,6
+566,8
@@
struct drm_device *drm_dev_alloc(struct drm_driver *driver,
ret = drm_minor_alloc(dev, DRM_MINOR_CONTROL);
if (ret)
goto err_minors;
+
+ WARN_ON(driver->suspend || driver->resume);
}
if (drm_core_check_feature(dev, DRIVER_RENDER)) {