sparc: Convert all SBUS drivers to dma_*() interfaces.
And all the SBUS dma interfaces are deleted. A private implementation remains inside of the 32-bit sparc port which exists only for the sake of the implementation of dma_*(). Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -192,8 +192,8 @@ static void *snd_malloc_sbus_pages(struct device *dev, size_t size,
|
||||
snd_assert(size > 0, return NULL);
|
||||
snd_assert(dma_addr != NULL, return NULL);
|
||||
pg = get_order(size);
|
||||
res = sbus_alloc_consistent(&sdev->ofdev.dev, PAGE_SIZE * (1 << pg),
|
||||
dma_addr);
|
||||
res = dma_alloc_coherent(&sdev->ofdev.dev, PAGE_SIZE * (1 << pg),
|
||||
dma_addr, GFP_ATOMIC);
|
||||
if (res != NULL)
|
||||
inc_snd_pages(pg);
|
||||
return res;
|
||||
@@ -209,8 +209,8 @@ static void snd_free_sbus_pages(struct device *dev, size_t size,
|
||||
return;
|
||||
pg = get_order(size);
|
||||
dec_snd_pages(pg);
|
||||
sbus_free_consistent(&sdev->ofdev.dev, PAGE_SIZE * (1 << pg),
|
||||
ptr, dma_addr);
|
||||
dma_free_coherent(&sdev->ofdev.dev, PAGE_SIZE * (1 << pg),
|
||||
ptr, dma_addr);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SBUS */
|
||||
|
Reference in New Issue
Block a user