]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf19a92631000b7ebe662908a18a0e8ea03481299
tree6ff8fa04992ee647187d7e8d3c035d4525eb759d
parentf1f75f0487474c11329dc77eccbfc9ab570fb3cd
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