diff options
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0123740b973d..b6d1455fa936 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -771,15 +771,15 @@ static void sdma_enable_channel(struct sdma_engine *sdma, int channel) | |||
771 | __raw_writel(1 << channel, sdma->regs + SDMA_H_START); | 771 | __raw_writel(1 << channel, sdma->regs + SDMA_H_START); |
772 | } | 772 | } |
773 | 773 | ||
774 | static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdma) | 774 | static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdmac) |
775 | { | 775 | { |
776 | dma_cookie_t cookie = sdma->chan.cookie; | 776 | dma_cookie_t cookie = sdmac->chan.cookie; |
777 | 777 | ||
778 | if (++cookie < 0) | 778 | if (++cookie < 0) |
779 | cookie = 1; | 779 | cookie = 1; |
780 | 780 | ||
781 | sdma->chan.cookie = cookie; | 781 | sdmac->chan.cookie = cookie; |
782 | sdma->desc.cookie = cookie; | 782 | sdmac->desc.cookie = cookie; |
783 | 783 | ||
784 | return cookie; | 784 | return cookie; |
785 | } | 785 | } |
@@ -1142,7 +1142,7 @@ static int __init sdma_get_firmware(struct sdma_engine *sdma, | |||
1142 | /* download the RAM image for SDMA */ | 1142 | /* download the RAM image for SDMA */ |
1143 | sdma_load_script(sdma, ram_code, | 1143 | sdma_load_script(sdma, ram_code, |
1144 | header->ram_code_size, | 1144 | header->ram_code_size, |
1145 | sdma->script_addrs->ram_code_start_addr); | 1145 | addr->ram_code_start_addr); |
1146 | clk_disable(sdma->clk); | 1146 | clk_disable(sdma->clk); |
1147 | 1147 | ||
1148 | sdma_add_scripts(sdma, addr); | 1148 | sdma_add_scripts(sdma, addr); |
@@ -1354,7 +1354,7 @@ err_clk: | |||
1354 | err_request_region: | 1354 | err_request_region: |
1355 | err_irq: | 1355 | err_irq: |
1356 | kfree(sdma); | 1356 | kfree(sdma); |
1357 | return 0; | 1357 | return ret; |
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | static int __exit sdma_remove(struct platform_device *pdev) | 1360 | static int __exit sdma_remove(struct platform_device *pdev) |