drm/omap: use refcount API to track the number of users of dma_addr
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 10 Oct 2019 11:59:53 +0000 (13:59 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Oct 2019 14:00:53 +0000 (17:00 +0300)
commitcec4fa7511ef7a73eb635834e9d85b25a5b47a98
tree6ff8fa04992ee647187d7e8d3c035d4525eb759d
parentb23ab6ac6d768f9d5b03b5a67bf48a6be6e1dcce
drm/omap: use refcount API to track the number of users of dma_addr

This would give us a WARN_ON() if the pin/unpin calls are unbalanced.

Proposed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010120000.1421-2-jjhiblot@ti.com
drivers/gpu/drm/omapdrm/omap_gem.c