]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f03b91f67ec3ffeadbd5943293d8bcb0ce32c7c
tree9e60cdb03beedf64206164a60d2dbf45875e2683
parenta0209bde8b9dd60a10313bc7eb1f2b63a4b58ebb
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: a4b3ebf0485b (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