drm: vboxvideo: switch to drm_*_get(), drm_*_put() helpers
authorCihangir Akturk <cakturk@gmail.com>
Fri, 11 Aug 2017 12:33:14 +0000 (15:33 +0300)
committerSean Paul <seanpaul@chromium.org>
Fri, 11 Aug 2017 15:34:07 +0000 (11:34 -0400)
commitc58ac649e3553c23a9bafba8c2e5d040aee87484
tree49898511d38b98e2122040aa94f5bf486024a8e0
parent0469901ea4beaa4a326ffcc9b1d6b5baf9738a42
drm: vboxvideo: switch to drm_*_get(), drm_*_put() helpers

Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference()
and drm_*_unreference() helpers.

drm_*_reference() and drm_*_unreference() functions are just
compatibility alias for drm_*_get() and drm_*_put() and should not be
used by new code. So convert all users of compatibility functions to
use the new APIs.

Generated by: scripts/coccinelle/api/drm-get-put.cocci

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1502454794-28558-29-git-send-email-cakturk@gmail.com
drivers/staging/vboxvideo/vbox_fb.c
drivers/staging/vboxvideo/vbox_main.c
drivers/staging/vboxvideo/vbox_mode.c