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:
bf02d87
)
drm/vmwgfx: use helpers
author
Rob Clark
<
[email protected]
>
Fri, 18 Jul 2014 03:30:02 +0000
(23:30 -0400)
committer
Dave Airlie
<
[email protected]
>
Fri, 18 Jul 2014 04:24:53 +0000
(14:24 +1000)
Signed-off-by: Rob Clark <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 1a024e3b7285e2e55d68ca92fca7c533b48fda69..991e5c8676f10b3ea0c539b868730869a165ad89 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@
-1501,7
+1501,6
@@
int vmw_kms_cursor_bypass_ioctl(struct drm_device *dev, void *data,
{
struct drm_vmw_cursor_bypass_arg *arg = data;
struct vmw_display_unit *du;
- struct drm_mode_object *obj;
struct drm_crtc *crtc;
int ret = 0;
@@
-1519,13
+1518,12
@@
int vmw_kms_cursor_bypass_ioctl(struct drm_device *dev, void *data,
return 0;
}
-
obj = drm_mode_object_find(dev, arg->crtc_id, DRM_MODE_OBJECT_CRTC
);
- if (!
obj
) {
+
crtc = drm_crtc_find(dev, arg->crtc_id
);
+ if (!
crtc
) {
ret = -ENOENT;
goto out;
}
- crtc = obj_to_crtc(obj);
du = vmw_crtc_to_du(crtc);
du->hotspot_x = arg->xhot;