arm64: dma-mapping: use ERR_PTR instead of NULL in stub
The real arm_iommu_create_mapping function returns an ERR_PTR (not NULL) on failure. Make the stub version match that convention. Change-Id: I1df954ee5b9037778f27fba2e626621740abf782 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
This commit is contained in:
parent
a4c8bee140
commit
0c8a3a1a3d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ static inline struct dma_iommu_mapping *
|
|||
arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, size_t size,
|
||||
int order)
|
||||
{
|
||||
return NULL;
|
||||
return ERR_PTR(-ENOMEM);
|
||||
}
|
||||
|
||||
static inline void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping)
|
||||
|
|
Loading…
Add table
Reference in a new issue