summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw/internal.h
diff options
context:
space:
mode:
authorAndy Shevchenko2014-08-19 19:29:17 +0200
committerVinod Koul2014-09-11 08:18:13 +0200
commita15636e83eb0dedefcb1221be729023e4c281748 (patch)
tree71bbc5c36dbd708399de26de51338e4769a0dbc2 /drivers/dma/dw/internal.h
parentdmaengine: dw: introduce generic filter function (diff)
downloadkernel-qcow2-linux-a15636e83eb0dedefcb1221be729023e4c281748.tar.gz
kernel-qcow2-linux-a15636e83eb0dedefcb1221be729023e4c281748.tar.xz
kernel-qcow2-linux-a15636e83eb0dedefcb1221be729023e4c281748.zip
dmaengine: dw: move clock operations to platform.c
On BayTrail platform DMA is not functional in the PCI mode, whereby it always failed and exit at the point when it tries to get a clock. It causes the PCI mode probe to exit with the error message: dw_dmac_pci: probe of 0000:00:1e.0 failed with error -2 This patch moves clock operations to where it belongs to. Thus, the clock is provided only in ACPI / non-PCI cases. Reported-by: Chew, Chiau Ee <chiau.ee.chew@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/internal.h')
-rw-r--r--drivers/dma/dw/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/dw/internal.h b/drivers/dma/dw/internal.h
index 2c8d02f52737..82258a167a0e 100644
--- a/drivers/dma/dw/internal.h
+++ b/drivers/dma/dw/internal.h
@@ -21,12 +21,14 @@
* @dev: struct device of the DMA controller
* @irq: irq line
* @regs: memory mapped I/O space
+ * @clk: hclk clock
* @dw: struct dw_dma that is filed by dw_dma_probe()
*/
struct dw_dma_chip {
struct device *dev;
int irq;
void __iomem *regs;
+ struct clk *clk;
struct dw_dma *dw;
};