sh: dma-mapping compile fixes.
Silly bug, make it build again.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
19f9a34f87
commit
87b0ef91b6
1 changed files with 25 additions and 17 deletions
|
@ -141,25 +141,35 @@ static inline void dma_sync_sg(struct device *dev, struct scatterlist *sg,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dma_sync_single_for_cpu(struct device *dev,
|
static inline void dma_sync_single_for_cpu(struct device *dev,
|
||||||
dma_addr_t dma_handle, size_t size,
|
dma_addr_t dma_handle, size_t size,
|
||||||
enum dma_data_direction dir)
|
enum dma_data_direction dir)
|
||||||
__attribute__ ((alias("dma_sync_single")));
|
{
|
||||||
|
dma_sync_single(dev, dma_handle, size, dir);
|
||||||
|
}
|
||||||
|
|
||||||
static void dma_sync_single_for_device(struct device *dev,
|
static inline void dma_sync_single_for_device(struct device *dev,
|
||||||
dma_addr_t dma_handle, size_t size,
|
dma_addr_t dma_handle,
|
||||||
|
size_t size,
|
||||||
|
enum dma_data_direction dir)
|
||||||
|
{
|
||||||
|
dma_sync_single(dev, dma_handle, size, dir);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void dma_sync_sg_for_cpu(struct device *dev,
|
||||||
|
struct scatterlist *sg, int nelems,
|
||||||
enum dma_data_direction dir)
|
enum dma_data_direction dir)
|
||||||
__attribute__ ((alias("dma_sync_single")));
|
{
|
||||||
|
dma_sync_sg(dev, sg, nelems, dir);
|
||||||
|
}
|
||||||
|
|
||||||
static void dma_sync_sg_for_cpu(struct device *dev,
|
static inline void dma_sync_sg_for_device(struct device *dev,
|
||||||
struct scatterlist *sg, int nelems,
|
struct scatterlist *sg, int nelems,
|
||||||
enum dma_data_direction dir)
|
enum dma_data_direction dir)
|
||||||
__attribute__ ((alias("dma_sync_sg")));
|
{
|
||||||
|
dma_sync_sg(dev, sg, nelems, dir);
|
||||||
|
}
|
||||||
|
|
||||||
static void dma_sync_sg_for_device(struct device *dev,
|
|
||||||
struct scatterlist *sg, int nelems,
|
|
||||||
enum dma_data_direction dir)
|
|
||||||
__attribute__ ((alias("dma_sync_sg")));
|
|
||||||
|
|
||||||
static inline int dma_get_cache_alignment(void)
|
static inline int dma_get_cache_alignment(void)
|
||||||
{
|
{
|
||||||
|
@ -174,6 +184,4 @@ static inline int dma_mapping_error(dma_addr_t dma_addr)
|
||||||
{
|
{
|
||||||
return dma_addr == 0;
|
return dma_addr == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __ASM_SH_DMA_MAPPING_H */
|
#endif /* __ASM_SH_DMA_MAPPING_H */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue