Commit 9b5f4e9e authored by Russell King's avatar Russell King

[ARM] Add dma_mapping_error() definition.

parent 02cae55d
......@@ -352,5 +352,13 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents,
}
}
/*
* DMA errors are defined by all-bits-set in the DMA address.
*/
static inline int dma_mapping_error(dma_addr_t dma_addr)
{
return dma_addr == ~0;
}
#endif /* __KERNEL__ */
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment