dmaengine: dw: balance PM runtime calls
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 13 Jan 2015 16:57:15 +0000 (18:57 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 13 Jan 2015 17:37:58 +0000 (23:07 +0530)
commit6acf3998d2c7420b2deb2b475fa78ba7573c6162
tree9e60cdb03beedf64206164a60d2dbf45875e2683
parent0ce3c066c49aa0bc3b98c0293f8f28d683dec768
dmaengine: dw: balance PM runtime calls

In case of PCI driver we will get a warning:
dw_dmac_pci 0000:00:18.0: Unbalanced pm_runtime_enable!
dw_dmac_pci 0000:00:18.0: DesignWare DMA Controller, 8 channels

This happens due to pm_runtime_enable() call from the driver when PM runtime is
enabled by core.

This patch moves that call to the platform driver where it might make sense.

Fixes: bb32baf76e56 (dmaengine: dw: enable runtime PM)
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/platform.c