Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1703006
| From | Cihangir Akturk <cakturk@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 23/29] drm/tilcdc: switch to drm_*{get,put} helpers |
| Date | 2017-08-03 14:10 +0200 |
| Message-ID | <uan6W-8co-27@gated-at.bofh.it> (permalink) |
| References | <uan6V-8co-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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: Cihangir Akturk <cakturk@gmail.com> --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index d524ed0..6e936dd 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c @@ -75,7 +75,7 @@ static void unref_worker(struct drm_flip_work *work, void *val) struct drm_device *dev = tilcdc_crtc->base.dev; mutex_lock(&dev->mode_config.mutex); - drm_framebuffer_unreference(val); + drm_framebuffer_put(val); mutex_unlock(&dev->mode_config.mutex); } @@ -456,7 +456,7 @@ static void tilcdc_crtc_set_mode(struct drm_crtc *crtc) set_scanout(crtc, fb); - drm_framebuffer_reference(fb); + drm_framebuffer_get(fb); crtc->hwmode = crtc->state->adjusted_mode; } @@ -621,7 +621,7 @@ int tilcdc_crtc_update_fb(struct drm_crtc *crtc, return -EBUSY; } - drm_framebuffer_reference(fb); + drm_framebuffer_get(fb); crtc->primary->fb = fb; tilcdc_crtc->event = event; -- 2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 23/29] drm/tilcdc: switch to drm_*{get,put} helpers Cihangir Akturk <cakturk@gmail.com> - 2017-08-03 14:10 +0200
Re: [PATCH 23/29] drm/tilcdc: switch to drm_*{get,put} helpers Jyri Sarha <jsarha@ti.com> - 2017-08-03 16:00 +0200
Re: [PATCH 23/29] drm/tilcdc: switch to drm_*{get,put} helpers Daniel Vetter <daniel@ffwll.ch> - 2017-08-03 17:50 +0200
Re: [PATCH 23/29] drm/tilcdc: switch to drm_*{get,put} helpers Jyri Sarha <jsarha@ti.com> - 2017-08-03 19:40 +0200
csiph-web