summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw/internal.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-08-19 20:29:17 +0300
committerVinod Koul <vinod.koul@intel.com>2014-09-11 11:48:13 +0530
commita15636e83eb0dedefcb1221be729023e4c281748 (patch)
tree71bbc5c36dbd708399de26de51338e4769a0dbc2 /drivers/dma/dw/internal.h
parent4d130de20c3f39fc1a1aecd3969b50d49ff2e358 (diff)
downloadop-kernel-dev-a15636e83eb0dedefcb1221be729023e4c281748.zip
op-kernel-dev-a15636e83eb0dedefcb1221be729023e4c281748.tar.gz
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 2c8d02f..82258a1 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;
};
OpenPOWER on IntegriCloud