Commit 61dd13b4 authored by Cihangir Akturk's avatar Cihangir Akturk Committed by Jyri Sarha

drm/tilcdc: switch to drm_*{get,put} helpers

drm_*_reference() and drm_*_unreference() functions are just
compatibility alias for drm_*_get() and drm_*_put() adn should not be
used by new code. So convert all users of compatibility functions to use
the new APIs.
Signed-off-by: default avatarCihangir Akturk <cakturk@gmail.com>
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
parent cafdee68
...@@ -75,7 +75,7 @@ static void unref_worker(struct drm_flip_work *work, void *val) ...@@ -75,7 +75,7 @@ static void unref_worker(struct drm_flip_work *work, void *val)
struct drm_device *dev = tilcdc_crtc->base.dev; struct drm_device *dev = tilcdc_crtc->base.dev;
mutex_lock(&dev->mode_config.mutex); mutex_lock(&dev->mode_config.mutex);
drm_framebuffer_unreference(val); drm_framebuffer_put(val);
mutex_unlock(&dev->mode_config.mutex); mutex_unlock(&dev->mode_config.mutex);
} }
...@@ -456,7 +456,7 @@ static void tilcdc_crtc_set_mode(struct drm_crtc *crtc) ...@@ -456,7 +456,7 @@ static void tilcdc_crtc_set_mode(struct drm_crtc *crtc)
set_scanout(crtc, fb); set_scanout(crtc, fb);
drm_framebuffer_reference(fb); drm_framebuffer_get(fb);
crtc->hwmode = crtc->state->adjusted_mode; crtc->hwmode = crtc->state->adjusted_mode;
} }
...@@ -633,7 +633,7 @@ int tilcdc_crtc_update_fb(struct drm_crtc *crtc, ...@@ -633,7 +633,7 @@ int tilcdc_crtc_update_fb(struct drm_crtc *crtc,
return -EBUSY; return -EBUSY;
} }
drm_framebuffer_reference(fb); drm_framebuffer_get(fb);
crtc->primary->fb = fb; crtc->primary->fb = fb;
tilcdc_crtc->event = event; tilcdc_crtc->event = event;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment