diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-03 14:24:46 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-03 14:24:46 -0400 |
| commit | 447a8b858e4bda41c394b1bc7fdbc9dc0bdf44f6 (patch) | |
| tree | 676e741f2552c9cb301e1e49c557b92bf8940f55 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |
| parent | 3049683eafdbbbd7350b0e5ca02a2d8c026a3362 (diff) | |
| parent | 042e1c79166b9250edd8262bea84e1703f27ad2e (diff) | |
Merge branch 'next' into for-linus
Prepare first round of input updates for 3.18.
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.c')
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 8f3edc4710f2..d2bc2b03d4c6 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |||
| @@ -75,7 +75,7 @@ void vmw_display_unit_cleanup(struct vmw_display_unit *du) | |||
| 75 | vmw_surface_unreference(&du->cursor_surface); | 75 | vmw_surface_unreference(&du->cursor_surface); |
| 76 | if (du->cursor_dmabuf) | 76 | if (du->cursor_dmabuf) |
| 77 | vmw_dmabuf_unreference(&du->cursor_dmabuf); | 77 | vmw_dmabuf_unreference(&du->cursor_dmabuf); |
| 78 | drm_sysfs_connector_remove(&du->connector); | 78 | drm_connector_unregister(&du->connector); |
| 79 | drm_crtc_cleanup(&du->crtc); | 79 | drm_crtc_cleanup(&du->crtc); |
| 80 | drm_encoder_cleanup(&du->encoder); | 80 | drm_encoder_cleanup(&du->encoder); |
| 81 | drm_connector_cleanup(&du->connector); | 81 | drm_connector_cleanup(&du->connector); |
| @@ -136,7 +136,7 @@ int vmw_cursor_update_dmabuf(struct vmw_private *dev_priv, | |||
| 136 | kmap_offset = 0; | 136 | kmap_offset = 0; |
| 137 | kmap_num = (width*height*4 + PAGE_SIZE - 1) >> PAGE_SHIFT; | 137 | kmap_num = (width*height*4 + PAGE_SIZE - 1) >> PAGE_SHIFT; |
| 138 | 138 | ||
| 139 | ret = ttm_bo_reserve(&dmabuf->base, true, false, false, 0); | 139 | ret = ttm_bo_reserve(&dmabuf->base, true, false, false, NULL); |
| 140 | if (unlikely(ret != 0)) { | 140 | if (unlikely(ret != 0)) { |
| 141 | DRM_ERROR("reserve failed\n"); | 141 | DRM_ERROR("reserve failed\n"); |
| 142 | return -EINVAL; | 142 | return -EINVAL; |
| @@ -343,7 +343,7 @@ void vmw_kms_cursor_snoop(struct vmw_surface *srf, | |||
| 343 | kmap_offset = cmd->dma.guest.ptr.offset >> PAGE_SHIFT; | 343 | kmap_offset = cmd->dma.guest.ptr.offset >> PAGE_SHIFT; |
| 344 | kmap_num = (64*64*4) >> PAGE_SHIFT; | 344 | kmap_num = (64*64*4) >> PAGE_SHIFT; |
| 345 | 345 | ||
| 346 | ret = ttm_bo_reserve(bo, true, false, false, 0); | 346 | ret = ttm_bo_reserve(bo, true, false, false, NULL); |
| 347 | if (unlikely(ret != 0)) { | 347 | if (unlikely(ret != 0)) { |
| 348 | DRM_ERROR("reserve failed\n"); | 348 | DRM_ERROR("reserve failed\n"); |
| 349 | return; | 349 | return; |
| @@ -1501,7 +1501,6 @@ int vmw_kms_cursor_bypass_ioctl(struct drm_device *dev, void *data, | |||
| 1501 | { | 1501 | { |
| 1502 | struct drm_vmw_cursor_bypass_arg *arg = data; | 1502 | struct drm_vmw_cursor_bypass_arg *arg = data; |
| 1503 | struct vmw_display_unit *du; | 1503 | struct vmw_display_unit *du; |
| 1504 | struct drm_mode_object *obj; | ||
| 1505 | struct drm_crtc *crtc; | 1504 | struct drm_crtc *crtc; |
| 1506 | int ret = 0; | 1505 | int ret = 0; |
| 1507 | 1506 | ||
| @@ -1519,13 +1518,12 @@ int vmw_kms_cursor_bypass_ioctl(struct drm_device *dev, void *data, | |||
| 1519 | return 0; | 1518 | return 0; |
| 1520 | } | 1519 | } |
| 1521 | 1520 | ||
| 1522 | obj = drm_mode_object_find(dev, arg->crtc_id, DRM_MODE_OBJECT_CRTC); | 1521 | crtc = drm_crtc_find(dev, arg->crtc_id); |
| 1523 | if (!obj) { | 1522 | if (!crtc) { |
| 1524 | ret = -ENOENT; | 1523 | ret = -ENOENT; |
| 1525 | goto out; | 1524 | goto out; |
| 1526 | } | 1525 | } |
| 1527 | 1526 | ||
| 1528 | crtc = obj_to_crtc(obj); | ||
| 1529 | du = vmw_crtc_to_du(crtc); | 1527 | du = vmw_crtc_to_du(crtc); |
| 1530 | 1528 | ||
| 1531 | du->hotspot_x = arg->xhot; | 1529 | du->hotspot_x = arg->xhot; |
