drm/tegra: switch to drm_*_get(), drm_*_put() helpers
authorCihangir Akturk <cakturk@gmail.com>
Fri, 11 Aug 2017 12:33:07 +0000 (15:33 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Aug 2017 15:57:09 +0000 (17:57 +0200)
commit7664b2fa42b5e962dd9ffd9e386dc20cbc966176
tree71c3faf42c500271a2e4e07c6b4335bb1a857dc5
parent788ff4b6cfd90fcd9608beccec9c5ed1ff8c4041
drm/tegra: 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: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/fb.c
drivers/gpu/drm/tegra/gem.c