drm/crtc: Use drm_mode_object_put() in __drm_framebuffer_unregister()
authorLiu Ying <gnuiyl@gmail.com>
Mon, 29 Feb 2016 03:21:10 +0000 (11:21 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 29 Feb 2016 16:51:09 +0000 (17:51 +0100)
commit327097930d655de5964fcb843b2b412ab68a9bac
tree17959060e9c776e95940aa8d13ea0bc0570c5a26
parent44ab4042178bd596275927ea050980aa4257581b
drm/crtc: Use drm_mode_object_put() in __drm_framebuffer_unregister()

The function __drm_framebuffer_unregister() has boilerplate code to drop idr
reference.  Let's replace it with drm_mode_object_put() to simplify the code.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1456716070-2602-1-git-send-email-gnuiyl@gmail.com
drivers/gpu/drm/drm_crtc.c