drm/etnaviv: remove iommu fault handler
The handler has never been used, so it's really just dead code. 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>
This commit is contained in:
parent
2bd6bf03f4
commit
3bc3e0ecef
|
@ -22,13 +22,6 @@
|
||||||
#include "etnaviv_iommu.h"
|
#include "etnaviv_iommu.h"
|
||||||
#include "etnaviv_mmu.h"
|
#include "etnaviv_mmu.h"
|
||||||
|
|
||||||
static int etnaviv_fault_handler(struct iommu_domain *iommu, struct device *dev,
|
|
||||||
unsigned long iova, int flags, void *arg)
|
|
||||||
{
|
|
||||||
DBG("*** fault: iova=%08lx, flags=%d", iova, flags);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int etnaviv_iommu_map(struct etnaviv_iommu *iommu, u32 iova,
|
int etnaviv_iommu_map(struct etnaviv_iommu *iommu, u32 iova,
|
||||||
struct sg_table *sgt, unsigned len, int prot)
|
struct sg_table *sgt, unsigned len, int prot)
|
||||||
{
|
{
|
||||||
|
@ -307,8 +300,6 @@ struct etnaviv_iommu *etnaviv_iommu_new(struct etnaviv_gpu *gpu)
|
||||||
mmu->domain->geometry.aperture_end -
|
mmu->domain->geometry.aperture_end -
|
||||||
mmu->domain->geometry.aperture_start + 1);
|
mmu->domain->geometry.aperture_start + 1);
|
||||||
|
|
||||||
iommu_set_fault_handler(mmu->domain, etnaviv_fault_handler, gpu->dev);
|
|
||||||
|
|
||||||
return mmu;
|
return mmu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue