mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
drm/etnaviv: Drop the 'len' parameter of etnaviv_iommu_map() function
The 'len' parameter is the 4th argument, because it is not get used, so drop it. No functional change. Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
e8491f0238
commit
9e2e8a5113
@ -70,7 +70,7 @@ static int etnaviv_context_map(struct etnaviv_iommu_context *context,
|
||||
}
|
||||
|
||||
static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova,
|
||||
struct sg_table *sgt, unsigned len, int prot)
|
||||
struct sg_table *sgt, int prot)
|
||||
{ struct scatterlist *sg;
|
||||
unsigned int da = iova;
|
||||
unsigned int i;
|
||||
@ -314,7 +314,7 @@ int etnaviv_iommu_map_gem(struct etnaviv_iommu_context *context,
|
||||
goto unlock;
|
||||
|
||||
mapping->iova = node->start;
|
||||
ret = etnaviv_iommu_map(context, node->start, sgt, etnaviv_obj->base.size,
|
||||
ret = etnaviv_iommu_map(context, node->start, sgt,
|
||||
ETNAVIV_PROT_READ | ETNAVIV_PROT_WRITE);
|
||||
|
||||
if (ret < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user