dmaengine: dw: move clock operations to platform.c
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Aug 2014 17:29:17 +0000 (20:29 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 11 Sep 2014 06:18:13 +0000 (11:48 +0530)
commita15636e83eb0dedefcb1221be729023e4c281748
tree71bbc5c36dbd708399de26de51338e4769a0dbc2
parent4d130de20c3f39fc1a1aecd3969b50d49ff2e358
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>
drivers/dma/dw/core.c
drivers/dma/dw/internal.h
drivers/dma/dw/platform.c
drivers/dma/dw/regs.h