[PATCH] dmaengine: pl300: enable the clock to PL330 dma

From: dinguyen
Date: Mon May 04 2015 - 00:34:38 EST


From: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx>

Turn on the clock to the PL330 DMA if there is a clock node provided.

Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/dma/pl330.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 0e1f567..82eb641 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2894,6 +2894,10 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)

adev->dev.dma_parms = &pl330->dma_parms;

+ adev->pclk = devm_clk_get(&adev->dev, "apb_pclk");
+ if (adev->pclk)
+ clk_prepare_enable(adev->pclk);
+
/*
* This is the limit for transfers with a buswidth of 1, larger
* buswidths will have larger limits.
--
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/