OSDN Git Service

drm/vc4: Continue the switch to drm_*_put() helpers
authorCihangir Akturk <cakturk@gmail.com>
Fri, 11 Aug 2017 12:33:10 +0000 (15:33 +0300)
committerEric Anholt <eric@anholt.net>
Mon, 14 Aug 2017 21:06:46 +0000 (14:06 -0700)
commitb9c55b6e2cc4369b0688961fa5de0e057f3ec0c4
tree1a0d6eb43b146ddfd8b2d27e5f57b61d2717b680
parent5afe0e62a548a0aa7d2095a98530b68f3d2c64e6
drm/vc4: Continue the switch to 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

v2: Tweak commit summary to distinguish it from the previous commit
    covering everything but the new bo_label ioctl (by anholt).

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1502454794-28558-25-git-send-email-cakturk@gmail.com
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_bo.c