drm/etnaviv: iommuv1: fold pagetable alloc and free into caller
authorLucas Stach <l.stach@pengutronix.de>
Thu, 7 Sep 2017 13:36:57 +0000 (15:36 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 09:35:29 +0000 (11:35 +0200)
commit1a540490e919bd64a9be35fca5147bbb7b2ac166
tree25c5e06ceaab195dc8f6f563d6d2c11eeeb1f16e
parent87ceb3756030d284c1e8424877a34b5452906549
drm/etnaviv: iommuv1: fold pagetable alloc and free into caller

Those functions are simple enough to fold them into the calling
function. This also fixes a correctness issue, as the alloc/free
functions didn't specifiy the device the memory was allocated for.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-By: Wladimir J. van der Laan <laanwj@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_iommu.c