diff options
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index a2b0a0e71168..86708fb9bda1 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1182,8 +1182,8 @@ static int sdma_request_channel0(struct sdma_engine *sdma) | |||
1182 | { | 1182 | { |
1183 | int ret = -EBUSY; | 1183 | int ret = -EBUSY; |
1184 | 1184 | ||
1185 | sdma->bd0 = dma_zalloc_coherent(NULL, PAGE_SIZE, &sdma->bd0_phys, | 1185 | sdma->bd0 = dma_alloc_coherent(NULL, PAGE_SIZE, &sdma->bd0_phys, |
1186 | GFP_NOWAIT); | 1186 | GFP_NOWAIT); |
1187 | if (!sdma->bd0) { | 1187 | if (!sdma->bd0) { |
1188 | ret = -ENOMEM; | 1188 | ret = -ENOMEM; |
1189 | goto out; | 1189 | goto out; |
@@ -1205,8 +1205,8 @@ static int sdma_alloc_bd(struct sdma_desc *desc) | |||
1205 | u32 bd_size = desc->num_bd * sizeof(struct sdma_buffer_descriptor); | 1205 | u32 bd_size = desc->num_bd * sizeof(struct sdma_buffer_descriptor); |
1206 | int ret = 0; | 1206 | int ret = 0; |
1207 | 1207 | ||
1208 | desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys, | 1208 | desc->bd = dma_alloc_coherent(NULL, bd_size, &desc->bd_phys, |
1209 | GFP_NOWAIT); | 1209 | GFP_NOWAIT); |
1210 | if (!desc->bd) { | 1210 | if (!desc->bd) { |
1211 | ret = -ENOMEM; | 1211 | ret = -ENOMEM; |
1212 | goto out; | 1212 | goto out; |