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:
Mitchel Humpherys 2015-04-02 12:41:37 -07:00 committed by David Keitel
parent a4c8bee140
commit 0c8a3a1a3d

View file

@ -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)