diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-08-19 20:29:17 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-09-11 11:48:13 +0530 |
commit | a15636e83eb0dedefcb1221be729023e4c281748 (patch) | |
tree | 71bbc5c36dbd708399de26de51338e4769a0dbc2 /drivers/dma/dw/internal.h | |
parent | 4d130de20c3f39fc1a1aecd3969b50d49ff2e358 (diff) | |
download | talos-op-linux-a15636e83eb0dedefcb1221be729023e4c281748.tar.gz talos-op-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.h | 2 |
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; }; |