diff options
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_object.h')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_object.h b/drivers/gpu/drm/qxl/qxl_object.h index 4d8311373ba3..0374fd93f4d6 100644 --- a/drivers/gpu/drm/qxl/qxl_object.h +++ b/drivers/gpu/drm/qxl/qxl_object.h | |||
@@ -34,8 +34,8 @@ static inline int qxl_bo_reserve(struct qxl_bo *bo, bool no_wait) | |||
34 | r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL); | 34 | r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL); |
35 | if (unlikely(r != 0)) { | 35 | if (unlikely(r != 0)) { |
36 | if (r != -ERESTARTSYS) { | 36 | if (r != -ERESTARTSYS) { |
37 | struct qxl_device *qdev = (struct qxl_device *)bo->gem_base.dev->dev_private; | 37 | struct drm_device *ddev = bo->gem_base.dev; |
38 | dev_err(qdev->dev, "%p reserve failed\n", bo); | 38 | dev_err(ddev->dev, "%p reserve failed\n", bo); |
39 | } | 39 | } |
40 | return r; | 40 | return r; |
41 | } | 41 | } |
@@ -70,8 +70,8 @@ static inline int qxl_bo_wait(struct qxl_bo *bo, u32 *mem_type, | |||
70 | r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL); | 70 | r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL); |
71 | if (unlikely(r != 0)) { | 71 | if (unlikely(r != 0)) { |
72 | if (r != -ERESTARTSYS) { | 72 | if (r != -ERESTARTSYS) { |
73 | struct qxl_device *qdev = (struct qxl_device *)bo->gem_base.dev->dev_private; | 73 | struct drm_device *ddev = bo->gem_base.dev; |
74 | dev_err(qdev->dev, "%p reserve failed for wait\n", | 74 | dev_err(ddev->dev, "%p reserve failed for wait\n", |
75 | bo); | 75 | bo); |
76 | } | 76 | } |
77 | return r; | 77 | return r; |