extern void dma_free_coherent(struct device *, size_t,
void *, dma_addr_t);
static inline void *dma_alloc_noncoherent(struct device *dev, size_t size,
extern void dma_free_coherent(struct device *, size_t,
void *, dma_addr_t);
static inline void *dma_alloc_noncoherent(struct device *dev, size_t size,
{
return dma_alloc_coherent(dev, size, handle, flag);
}
{
return dma_alloc_coherent(dev, size, handle, flag);
}
{
dma_free_coherent(dev, size, addr, handle);
}
{
dma_free_coherent(dev, size, addr, handle);
}
-static inline void dma_cache_sync(void *vaddr, size_t size,
+static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction dir)
{
/* we use coherent allocation, so not much to do here. */
enum dma_data_direction dir)
{
/* we use coherent allocation, so not much to do here. */