Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281947
b: refs/heads/master
c: 759a2e3
h: refs/heads/master
i:
  281945: 7e22744
  281943: 3e28265
v: v3
  • Loading branch information
Shawn Guo committed Dec 28, 2011
1 parent 61089a5 commit 487698c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ebafefcaa7a383b728d977a718e23e69ce84050
refs/heads/master: 759a2e30d288032130f1f77092e72d4ec87ad4d0
8 changes: 4 additions & 4 deletions trunk/drivers/dma/mxs-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static int mxs_dma_alloc_chan_resources(struct dma_chan *chan)
goto err_irq;
}

ret = clk_enable(mxs_dma->clk);
ret = clk_prepare_enable(mxs_dma->clk);
if (ret)
goto err_clk;

Expand Down Expand Up @@ -372,7 +372,7 @@ static void mxs_dma_free_chan_resources(struct dma_chan *chan)
dma_free_coherent(mxs_dma->dma_device.dev, PAGE_SIZE,
mxs_chan->ccw, mxs_chan->ccw_phys);

clk_disable(mxs_dma->clk);
clk_disable_unprepare(mxs_dma->clk);
}

static struct dma_async_tx_descriptor *mxs_dma_prep_slave_sg(
Expand Down Expand Up @@ -578,7 +578,7 @@ static int __init mxs_dma_init(struct mxs_dma_engine *mxs_dma)
{
int ret;

ret = clk_enable(mxs_dma->clk);
ret = clk_prepare_enable(mxs_dma->clk);
if (ret)
goto err_out;

Expand All @@ -604,7 +604,7 @@ static int __init mxs_dma_init(struct mxs_dma_engine *mxs_dma)
writel(MXS_DMA_CHANNELS_MASK << MXS_DMA_CHANNELS,
mxs_dma->base + HW_APBHX_CTRL1 + MXS_SET_ADDR);

clk_disable(mxs_dma->clk);
clk_disable_unprepare(mxs_dma->clk);

return 0;

Expand Down

0 comments on commit 487698c

Please sign in to comment.