diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-06-06 10:41:40 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-06 12:04:07 -0400 |
commit | accbaf6ec8751e94c39c73051b8ab8737571dca4 (patch) | |
tree | c60f130c5ba7359432c0c58b3ef14794adcaa391 | |
parent | 60629c4d192f12028a47f6eb019fe21795e46424 (diff) |
drm/armada: use drm_crtc_vblank_{get,put}()
Replace the legacy drm_vblank_{get,put}() with the new helper functions.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465224105-21485-9-git-send-email-gustavo@padovan.org
-rw-r--r-- | drivers/gpu/drm/armada/armada_crtc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index cdc411716775..34405e4a5d36 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c | |||
@@ -199,7 +199,7 @@ static void armada_drm_plane_work_run(struct armada_crtc *dcrtc, | |||
199 | /* Handle any pending frame work. */ | 199 | /* Handle any pending frame work. */ |
200 | if (work) { | 200 | if (work) { |
201 | work->fn(dcrtc, plane, work); | 201 | work->fn(dcrtc, plane, work); |
202 | drm_vblank_put(dcrtc->crtc.dev, dcrtc->num); | 202 | drm_crtc_vblank_put(&dcrtc->crtc); |
203 | } | 203 | } |
204 | 204 | ||
205 | wake_up(&plane->frame_wait); | 205 | wake_up(&plane->frame_wait); |
@@ -210,7 +210,7 @@ int armada_drm_plane_work_queue(struct armada_crtc *dcrtc, | |||
210 | { | 210 | { |
211 | int ret; | 211 | int ret; |
212 | 212 | ||
213 | ret = drm_vblank_get(dcrtc->crtc.dev, dcrtc->num); | 213 | ret = drm_crtc_vblank_get(&dcrtc->crtc); |
214 | if (ret) { | 214 | if (ret) { |
215 | DRM_ERROR("failed to acquire vblank counter\n"); | 215 | DRM_ERROR("failed to acquire vblank counter\n"); |
216 | return ret; | 216 | return ret; |
@@ -218,7 +218,7 @@ int armada_drm_plane_work_queue(struct armada_crtc *dcrtc, | |||
218 | 218 | ||
219 | ret = cmpxchg(&plane->work, NULL, work) ? -EBUSY : 0; | 219 | ret = cmpxchg(&plane->work, NULL, work) ? -EBUSY : 0; |
220 | if (ret) | 220 | if (ret) |
221 | drm_vblank_put(dcrtc->crtc.dev, dcrtc->num); | 221 | drm_crtc_vblank_put(&dcrtc->crtc); |
222 | 222 | ||
223 | return ret; | 223 | return ret; |
224 | } | 224 | } |
@@ -234,7 +234,7 @@ struct armada_plane_work *armada_drm_plane_work_cancel( | |||
234 | struct armada_plane_work *work = xchg(&plane->work, NULL); | 234 | struct armada_plane_work *work = xchg(&plane->work, NULL); |
235 | 235 | ||
236 | if (work) | 236 | if (work) |
237 | drm_vblank_put(dcrtc->crtc.dev, dcrtc->num); | 237 | drm_crtc_vblank_put(&dcrtc->crtc); |
238 | 238 | ||
239 | return work; | 239 | return work; |
240 | } | 240 | } |
@@ -592,9 +592,9 @@ static int armada_drm_crtc_mode_set(struct drm_crtc *crtc, | |||
592 | 592 | ||
593 | if (interlaced ^ dcrtc->interlaced) { | 593 | if (interlaced ^ dcrtc->interlaced) { |
594 | if (adj->flags & DRM_MODE_FLAG_INTERLACE) | 594 | if (adj->flags & DRM_MODE_FLAG_INTERLACE) |
595 | drm_vblank_get(dcrtc->crtc.dev, dcrtc->num); | 595 | drm_crtc_vblank_get(&dcrtc->crtc); |
596 | else | 596 | else |
597 | drm_vblank_put(dcrtc->crtc.dev, dcrtc->num); | 597 | drm_crtc_vblank_put(&dcrtc->crtc); |
598 | dcrtc->interlaced = interlaced; | 598 | dcrtc->interlaced = interlaced; |
599 | } | 599 | } |
600 | 600 | ||