OSDN Git Service

drm/cirrus: switch to drm_*_get(), drm_*_put() helpers
authorCihangir Akturk <cakturk@gmail.com>
Fri, 11 Aug 2017 12:32:52 +0000 (15:32 +0300)
committerSean Paul <seanpaul@chromium.org>
Fri, 11 Aug 2017 15:39:08 +0000 (11:39 -0400)
commit6aeeadab79e1d67ebb275dc4735bbbded252f637
treeace001f5474b3cd51836e74278192aec91fe1c79
parent1feba03f726a8b8d36c8530430494e8ac1edf96a
drm/cirrus: 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>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1502454794-28558-7-git-send-email-cakturk@gmail.com
drivers/gpu/drm/cirrus/cirrus_fbdev.c
drivers/gpu/drm/cirrus/cirrus_main.c